[][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>; fn write_to<W: Write>(
        &self,
        w: &mut W,
        tlv_type: Option<u64>
    ) -> Result<usize> { ... }
fn read_from<'a, R: Read>(
        reader: &mut PeekReader<'a, R>,
        tlv_type: Option<u64>
    ) -> Result<Option<Self>> { ... } }

Required methods

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

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

Loading content...

Provided methods

fn write_to<W: Write>(&self, w: &mut W, tlv_type: Option<u64>) -> Result<usize>

fn read_from<'a, R: Read>(
    reader: &mut PeekReader<'a, R>,
    tlv_type: Option<u64>
) -> Result<Option<Self>>

Loading content...

Implementors

impl WireItem for Hash[src]

impl WireItem for RawFeatureVector[src]

Loading content...