pub struct ConnectionKey {
pub protocol: Protocol,
pub local_addr: SocketAddr,
pub remote_addr: SocketAddr,
}Expand description
Connection identifier for lookups
Fields§
§protocol: Protocol§local_addr: SocketAddr§remote_addr: SocketAddrImplementations§
Source§impl ConnectionKey
impl ConnectionKey
pub fn from_connection(conn: &Connection) -> Self
Trait Implementations§
Source§impl Clone for ConnectionKey
impl Clone for ConnectionKey
Source§fn clone(&self) -> ConnectionKey
fn clone(&self) -> ConnectionKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionKey
impl Debug for ConnectionKey
impl Eq for ConnectionKey
Source§impl Hash for ConnectionKey
impl Hash for ConnectionKey
Source§impl PartialEq for ConnectionKey
impl PartialEq for ConnectionKey
Source§fn eq(&self, other: &ConnectionKey) -> bool
fn eq(&self, other: &ConnectionKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectionKey
Auto Trait Implementations§
impl Freeze for ConnectionKey
impl RefUnwindSafe for ConnectionKey
impl Send for ConnectionKey
impl Sync for ConnectionKey
impl Unpin for ConnectionKey
impl UnsafeUnpin for ConnectionKey
impl UnwindSafe for ConnectionKey
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