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
fn into_message(self) -> ChanMsg
fn into_message(self) -> ChanMsg
Convert this type into a ChanMsg, wrapped as appropriate.
fn write_body_onto<W: Writer + ?Sized>(self, w: &mut W)
fn write_body_onto<W: Writer + ?Sized>(self, w: &mut W)
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.