pub struct FourTuple {
pub local_addr: SocketAddr,
pub peer_addr: SocketAddr,
}Expand description
Four Tuple consists of local address and peer address
Fields§
§local_addr: SocketAddrLocal socket address, either IPv4 or IPv6
peer_addr: SocketAddrPeer socket address, either IPv4 or IPv6
Trait Implementations§
Source§impl From<&TransportContext> for FourTuple
impl From<&TransportContext> for FourTuple
Source§fn from(value: &TransportContext) -> Self
fn from(value: &TransportContext) -> Self
Converts to this type from the input type.
Source§impl From<TransportContext> for FourTuple
impl From<TransportContext> for FourTuple
Source§fn from(value: TransportContext) -> Self
fn from(value: TransportContext) -> Self
Converts to this type from the input type.
Source§impl Ord for FourTuple
impl Ord for FourTuple
Source§impl PartialOrd for FourTuple
impl PartialOrd for FourTuple
impl Copy for FourTuple
impl Eq for FourTuple
impl StructuralPartialEq for FourTuple
Auto Trait Implementations§
impl Freeze for FourTuple
impl RefUnwindSafe for FourTuple
impl Send for FourTuple
impl Sync for FourTuple
impl Unpin for FourTuple
impl UnwindSafe for FourTuple
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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