pub struct Tuple {
pub remote_address: RemoteAddress,
pub local_address: LocalAddress,
}
Fields§
§remote_address: RemoteAddress
§local_address: LocalAddress
Trait Implementations§
Source§impl Handle for Tuple
impl Handle for Tuple
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_address(&mut self, addr: RemoteAddress)
fn set_remote_address(&mut self, addr: RemoteAddress)
Updates the remote address 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 set_local_address(&mut self, addr: LocalAddress)
fn set_local_address(&mut self, addr: LocalAddress)
Updates the local address to the given value
Source§fn unmapped_eq(&self, other: &Self) -> bool
fn unmapped_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 moreimpl Copy for Tuple
impl Eq for Tuple
Auto Trait Implementations§
impl Freeze for Tuple
impl RefUnwindSafe for Tuple
impl Send for Tuple
impl Sync for Tuple
impl Unpin for Tuple
impl UnwindSafe for Tuple
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