Struct tor_cell::relaycell::udp::ConnectedUdp
source · pub struct ConnectedUdp { /* private fields */ }
Available on crate feature
experimental-udp
only.Expand description
A ConnectedUdp cell sent in response to a ConnectUdp.
Implementations§
source§impl ConnectedUdp
impl ConnectedUdp
sourcepub fn new(our_address: AddressPort, their_address: AddressPort) -> Result<Self>
pub fn new(our_address: AddressPort, their_address: AddressPort) -> Result<Self>
Construct a new ConnectedUdp cell.
Trait Implementations§
source§impl Body for ConnectedUdp
impl Body for ConnectedUdp
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 ConnectedUdp
impl Clone for ConnectedUdp
source§fn clone(&self) -> ConnectedUdp
fn clone(&self) -> ConnectedUdp
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 ConnectedUdp
impl Debug for ConnectedUdp
source§impl From<ConnectedUdp> for AnyRelayMsg
impl From<ConnectedUdp> for AnyRelayMsg
source§fn from(m: ConnectedUdp) -> AnyRelayMsg
fn from(m: ConnectedUdp) -> AnyRelayMsg
Converts to this type from the input type.
source§impl RelayMsg for ConnectedUdp
impl RelayMsg for ConnectedUdp
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 ConnectedUdp
impl TryFrom<AnyRelayMsg> for ConnectedUdp
source§fn try_from(msg: AnyRelayMsg) -> Result<ConnectedUdp>
fn try_from(msg: AnyRelayMsg) -> Result<ConnectedUdp>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ConnectedUdp
impl RefUnwindSafe for ConnectedUdp
impl Send for ConnectedUdp
impl Sync for ConnectedUdp
impl Unpin for ConnectedUdp
impl UnwindSafe for ConnectedUdp
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