Enum offchain::payment_command::Origin
source · pub enum Origin {
Inbound,
Outbound,
}
Variants§
Implementations§
source§impl Origin
impl Origin
pub fn is_inbound(&self) -> bool
pub fn is_outbound(&self) -> bool
Trait Implementations§
source§impl PartialEq<Origin> for Origin
impl PartialEq<Origin> for Origin
impl Copy for Origin
impl Eq for Origin
impl StructuralEq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.