[][src]Trait lightning_wire_msgs::WireMessage

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

Associated Constants

const MSG_TYPE: u16

Loading content...

Required methods

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

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

Loading content...

Implementors

impl WireMessage for CreateSession[src]

impl WireMessage for DeleteSession[src]

impl WireMessage for DeleteSessionReply[src]

impl WireMessage for Init[src]

impl WireMessage for StateUpdateReply[src]

impl<T: Borrow<[u8]>> WireMessage for Error<T>[src]

impl<T: Borrow<[u8]>> WireMessage for CreateSessionReply<T>[src]

impl<T: Borrow<[u8]>> WireMessage for StateUpdate<T>[src]

Loading content...