Trait tor_cell::chancell::msg::Body[][src]

pub trait Body: Readable {
    fn into_message(self) -> ChanMsg;
fn write_body_onto<W: Writer + ?Sized>(self, w: &mut W); }
Expand description

Trait for the ‘bodies’ of channel messages.

Required methods

Convert this type into a ChanMsg, wrapped as appropriate.

Consume this message and encode its body onto w.

Does not encode anything but the cell body, and does not pad to the cell length.

Implementors