[][src]Trait lightning_wire_msgs::WireItem

pub trait WireItem where
    Self: Sized
{ fn encode<W: Write>(&self, w: &mut W) -> Result<usize>;
fn decode<R: Read>(r: &mut R) -> Result<Self>; }

Required methods

fn encode<W: Write>(&self, w: &mut W) -> Result<usize>

fn decode<R: Read>(r: &mut R) -> Result<Self>

Loading content...

Implementations on Foreign Types

impl WireItem for u8[src]

impl WireItem for i8[src]

impl WireItem for u16[src]

impl WireItem for i16[src]

impl WireItem for u32[src]

impl WireItem for i32[src]

impl WireItem for u64[src]

impl WireItem for i64[src]

impl WireItem for u128[src]

impl WireItem for i128[src]

impl WireItem for usize[src]

impl WireItem for isize[src]

impl WireItem for [u8; 16][src]

impl WireItem for ()[src]

impl<T> WireItem for Option<T> where
    ErrorCode: From<T>,
    T: Copy + TryFrom<u16>, 
[src]

Loading content...

Implementors

impl WireItem for KnownType[src]

impl WireItem for RawFeatureVector[src]

impl WireItem for SatPerKWeight[src]

impl WireItem for Hash[src]

impl WireItem for Type[src]

impl WireItem for ErrorCode[src]

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

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

Loading content...