pub struct Begin { /* private fields */ }Expand description
A Begin message creates a new data stream.
Upon receiving a Begin message, relays should try to open a new stream for the client, if their exit policy permits, and associate it with a new TCP connection to the target address.
If the exit decides to reject the Begin message, or if the TCP connection fails, the exit should send an End message.
Clients should reject these messages.
Implementations§
Trait Implementations§
source§impl Body for Begin
impl Body for Begin
source§fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
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<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Encode the body of this cell into the end of a writer.
source§impl From<Begin> for AnyRelayMsg
impl From<Begin> for AnyRelayMsg
source§fn from(m: Begin) -> AnyRelayMsg
fn from(m: Begin) -> AnyRelayMsg
Converts to this type from the input type.