pub struct UdpSessionKey {
pub src_ip: IpAddr,
pub src_port: u16,
pub dst_ip: IpAddr,
pub dst_port: u16,
}Expand description
Key for UDP session (5-tuple)
Fields§
§src_ip: IpAddr§src_port: u16§dst_ip: IpAddr§dst_port: u16Implementations§
Source§impl UdpSessionKey
impl UdpSessionKey
pub fn new(src: SocketAddr, dst: SocketAddr) -> Self
Trait Implementations§
Source§impl Clone for UdpSessionKey
impl Clone for UdpSessionKey
Source§fn clone(&self) -> UdpSessionKey
fn clone(&self) -> UdpSessionKey
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 UdpSessionKey
impl Debug for UdpSessionKey
Source§impl Hash for UdpSessionKey
impl Hash for UdpSessionKey
Source§impl PartialEq for UdpSessionKey
impl PartialEq for UdpSessionKey
Source§fn eq(&self, other: &UdpSessionKey) -> bool
fn eq(&self, other: &UdpSessionKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UdpSessionKey
impl StructuralPartialEq for UdpSessionKey
Auto Trait Implementations§
impl Freeze for UdpSessionKey
impl RefUnwindSafe for UdpSessionKey
impl Send for UdpSessionKey
impl Sync for UdpSessionKey
impl Unpin for UdpSessionKey
impl UnsafeUnpin for UdpSessionKey
impl UnwindSafe for UdpSessionKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.