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

pub trait Body: Sized {
    fn into_message(self) -> RelayMsg;
fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>;
fn encode_onto(self, w: &mut Vec<u8>); }
Expand description

Internal: traits in common different cell bodies.

Required methods

Convert this type into a RelayMsg, wrapped appropriate.

Decode a relay cell body from a provided reader.

Encode the body of this cell into the end of a vec.

Implementors