Struct tor_cell::relaycell::msg::End [−][src]
pub struct End { /* fields omitted */ }
Expand description
An End message tells the other end of the circuit to close a stream.
Note that End messages do not implement a true half-closed state, so after sending an End message each party needs to wait a while to be sure that the stream is completely dead.
Implementations
Make a new END_REASON_MISC message.
Clients send this every time they decide to close a stream.
Make a new END message with the provided end reason.
Make a new END message with END_REASON_EXITPOLICY, and the provided address and ttl.
Trait Implementations
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.
Auto Trait Implementations
impl RefUnwindSafe for End
impl UnwindSafe for End
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V