[][src]Enum lightning_wire_msgs::items::Buffer

pub enum Buffer<T: Borrow<[u8]>> {
    Vector(Vec<u8>),
    Other(T),
}

Variants

Vector(Vec<u8>)Other(T)

Methods

impl<T> Buffer<T> where
    T: Borrow<[u8]>, 
[src]

pub fn to_vec(self) -> Vec<u8>[src]

Trait Implementations

impl<T> WireItem for Buffer<T> where
    T: Borrow<[u8]>, 
[src]

impl<T: Clone + Borrow<[u8]>> Clone for Buffer<T>[src]

impl<T> From<T> for Buffer<T> where
    T: Borrow<[u8]>, 
[src]

impl<T: Debug + Borrow<[u8]>> Debug for Buffer<T>[src]

impl<T> Borrow<[u8]> for Buffer<T> where
    T: Borrow<[u8]>, 
[src]

Auto Trait Implementations

impl<T> Send for Buffer<T> where
    T: Send

impl<T> Unpin for Buffer<T> where
    T: Unpin

impl<T> Sync for Buffer<T> where
    T: Sync

impl<T> UnwindSafe for Buffer<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Buffer<T> where
    T: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]