Struct tor_cell::relaycell::udp::ConnectUdp
source · pub struct ConnectUdp { /* private fields */ }
Available on crate feature
experimental-udp
only.Expand description
A ConnectUdp message creates a new UDP data stream.
Upon receiving a ConnectUdp message, a relay tries to connect to the given address with the UDP protocol if the exit policy permits.
If the exit decides to reject the message, or if the UDP connection fails, the exit should send an End message.
Clients should reject these messages.
Implementations§
source§impl ConnectUdp
impl ConnectUdp
Trait Implementations§
source§impl Body for ConnectUdp
impl Body for ConnectUdp
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 Clone for ConnectUdp
impl Clone for ConnectUdp
source§fn clone(&self) -> ConnectUdp
fn clone(&self) -> ConnectUdp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectUdp
impl Debug for ConnectUdp
source§impl From<ConnectUdp> for AnyRelayMsg
impl From<ConnectUdp> for AnyRelayMsg
source§fn from(m: ConnectUdp) -> AnyRelayMsg
fn from(m: ConnectUdp) -> AnyRelayMsg
Converts to this type from the input type.
source§impl RelayMsg for ConnectUdp
impl RelayMsg for ConnectUdp
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 message, not including command or length
source§impl TryFrom<AnyRelayMsg> for ConnectUdp
impl TryFrom<AnyRelayMsg> for ConnectUdp
source§fn try_from(msg: AnyRelayMsg) -> Result<ConnectUdp>
fn try_from(msg: AnyRelayMsg) -> Result<ConnectUdp>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ConnectUdp
impl RefUnwindSafe for ConnectUdp
impl Send for ConnectUdp
impl Sync for ConnectUdp
impl Unpin for ConnectUdp
impl UnwindSafe for ConnectUdp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more