Struct s2n_quic_core::path::RemoteAddress
source · pub struct RemoteAddress(pub SocketAddress);
Tuple Fields§
§0: SocketAddress
Methods from Deref<Target = SocketAddress>§
pub fn ip(&self) -> IpAddress
pub fn port(&self) -> u16
pub fn set_port(&mut self, port: u16)
pub fn unicast_scope(&self) -> Option<UnicastScope>
Trait Implementations§
source§impl Clone for RemoteAddress
impl Clone for RemoteAddress
source§fn clone(&self) -> RemoteAddress
fn clone(&self) -> RemoteAddress
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 RemoteAddress
impl Debug for RemoteAddress
source§impl Default for RemoteAddress
impl Default for RemoteAddress
source§fn default() -> RemoteAddress
fn default() -> RemoteAddress
Returns the “default value” for a type. Read more
source§impl Deref for RemoteAddress
impl Deref for RemoteAddress
source§impl DerefMut for RemoteAddress
impl DerefMut for RemoteAddress
source§impl From<RemoteAddress> for RemoteAddress
impl From<RemoteAddress> for RemoteAddress
source§fn from(addr: RemoteAddress) -> Self
fn from(addr: RemoteAddress) -> Self
Converts to this type from the input type.
source§impl From<RemoteAddress> for RemoteAddress
impl From<RemoteAddress> for RemoteAddress
source§fn from(addr: RemoteAddress) -> Self
fn from(addr: RemoteAddress) -> Self
Converts to this type from the input type.
source§impl From<SocketAddress<'_>> for RemoteAddress
impl From<SocketAddress<'_>> for RemoteAddress
source§fn from(value: SocketAddress<'_>) -> Self
fn from(value: SocketAddress<'_>) -> Self
Converts to this type from the input type.
source§impl From<SocketAddress> for RemoteAddress
impl From<SocketAddress> for RemoteAddress
source§fn from(value: SocketAddress) -> Self
fn from(value: SocketAddress) -> Self
Converts to this type from the input type.
source§impl From<SocketAddressV4> for RemoteAddress
impl From<SocketAddressV4> for RemoteAddress
source§fn from(value: SocketAddressV4) -> Self
fn from(value: SocketAddressV4) -> Self
Converts to this type from the input type.
source§impl From<SocketAddressV6> for RemoteAddress
impl From<SocketAddressV6> for RemoteAddress
source§fn from(value: SocketAddressV6) -> Self
fn from(value: SocketAddressV6) -> Self
Converts to this type from the input type.
source§impl Handle for RemoteAddress
impl Handle for RemoteAddress
source§fn from_remote_address(remote_address: RemoteAddress) -> Self
fn from_remote_address(remote_address: RemoteAddress) -> Self
Creates a Handle from a RemoteAddress
source§fn remote_address(&self) -> RemoteAddress
fn remote_address(&self) -> RemoteAddress
Returns the remote address for the given handle
source§fn set_remote_port(&mut self, port: u16)
fn set_remote_port(&mut self, port: u16)
Updates the remote port to the given value
source§fn local_address(&self) -> LocalAddress
fn local_address(&self) -> LocalAddress
Returns the local address for the given handle
source§fn eq(&self, other: &Self) -> bool
fn eq(&self, other: &Self) -> bool
Returns
true
if the two handles are equal from a network perspective Read moresource§fn strict_eq(&self, other: &Self) -> bool
fn strict_eq(&self, other: &Self) -> bool
Returns
true
if the two handles are strictly equal to each other, i.e.
byte-for-byte.source§fn maybe_update(&mut self, _other: &Self)
fn maybe_update(&mut self, _other: &Self)
Depending on the current value of
self
, fields from other
may be copied to increase the
fidelity of the value. Read moresource§impl Hash for RemoteAddress
impl Hash for RemoteAddress
source§impl PartialEq for RemoteAddress
impl PartialEq for RemoteAddress
source§fn eq(&self, other: &RemoteAddress) -> bool
fn eq(&self, other: &RemoteAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RemoteAddress
impl Eq for RemoteAddress
impl StructuralPartialEq for RemoteAddress
Auto Trait Implementations§
impl Freeze for RemoteAddress
impl RefUnwindSafe for RemoteAddress
impl Send for RemoteAddress
impl Sync for RemoteAddress
impl Unpin for RemoteAddress
impl UnwindSafe for RemoteAddress
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