[][src]Enum lightning_wire_msgs::items::MaybeOwned

pub enum MaybeOwned<'a, O: Borrow<B>, B> {
    Owned(O),
    Borrowed(&'a B),
}

Variants

Owned(O)Borrowed(&'a B)

Trait Implementations

impl<'a, O, B> WireItem for MaybeOwned<'a, O, B> where
    O: Borrow<B> + WireItem,
    B: WireItemWriter
[src]

impl<'a, O, B> Borrow<B> for MaybeOwned<'a, O, B> where
    O: Borrow<B>, 
[src]

Auto Trait Implementations

impl<'a, O, B> Send for MaybeOwned<'a, O, B> where
    B: Sync,
    O: Send

impl<'a, O, B> Unpin for MaybeOwned<'a, O, B> where
    O: Unpin

impl<'a, O, B> Sync for MaybeOwned<'a, O, B> where
    B: Sync,
    O: Sync

impl<'a, O, B> UnwindSafe for MaybeOwned<'a, O, B> where
    B: RefUnwindSafe,
    O: UnwindSafe

impl<'a, O, B> RefUnwindSafe for MaybeOwned<'a, O, B> where
    B: RefUnwindSafe,
    O: RefUnwindSafe

Blanket Implementations

impl<T> WireItemWriter for T where
    T: TLVWireItem
[src]

impl<T> WireItemReader for T where
    T: WireItem
[src]

impl<T> TLVWireItemWriter for T where
    T: TLVWireItem
[src]

impl<T> TLVWireItemReader for T where
    T: TLVWireItem
[src]

impl<T> TLVWireItem for T where
    T: WireItem
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]