pub struct Handle {
pub remote_address: RemoteAddress,
pub local_address: LocalAddress,
}Fields§
§remote_address: RemoteAddress§local_address: LocalAddressTrait Implementations§
Source§impl Handle for Handle
impl Handle for Handle
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 moreimpl Copy for Handle
impl Eq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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