Trait tor_cell::relaycell::msg::Body

source ·
pub trait Body: Sized {
    // Required methods
    fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>;
    fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>;
}
Expand description

Internal: traits in common different cell bodies.

Required Methods§

source

fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>

Decode a relay cell body from a provided reader.

source

fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Body for EstablishIntro

Available on crate feature hs only.
source§

impl Body for EstablishRendezvous

Available on crate feature hs only.
source§

impl Body for IntroEstablished

Available on crate feature hs only.
source§

impl Body for Introduce1

Available on crate feature hs only.
source§

impl Body for Introduce2

Available on crate feature hs only.
source§

impl Body for IntroduceAck

Available on crate feature hs only.
source§

impl Body for Rendezvous1

Available on crate feature hs only.
source§

impl Body for Rendezvous2

Available on crate feature hs only.
source§

impl Body for RendezvousEstablished

Available on crate feature hs only.
source§

impl Body for ConnectUdp

Available on crate feature experimental-udp only.
source§

impl Body for ConnectedUdp

Available on crate feature experimental-udp only.
source§

impl Body for Datagram

Available on crate feature experimental-udp only.
source§

impl Body for Begin

source§

impl Body for BeginDir

source§

impl Body for Connected

source§

impl Body for Data

source§

impl Body for Drop

source§

impl Body for End

source§

impl Body for Extend2

source§

impl Body for Extend

source§

impl Body for Extended2

source§

impl Body for Extended

source§

impl Body for Resolve

source§

impl Body for Resolved

source§

impl Body for Sendme

source§

impl Body for Truncate

source§

impl Body for Truncated

source§

impl Body for Unrecognized