pub struct UdpSession {
pub flow_id: Uuid,
pub key: UdpSessionKey,
pub created_at: Instant,
pub last_activity: Arc<RwLock<Instant>>,
pub packet_count: Arc<AtomicUsize>,
pub bytes_transferred: Arc<AtomicUsize>,
pub upstream_socket: Option<Arc<UdpSocket>>,
pub downstream_socket: Option<Arc<UdpSocket>>,
}Expand description
UDP Session Metadata
Fields§
§flow_id: Uuid§key: UdpSessionKey§created_at: Instant§last_activity: Arc<RwLock<Instant>>§packet_count: Arc<AtomicUsize>§bytes_transferred: Arc<AtomicUsize>§upstream_socket: Option<Arc<UdpSocket>>§downstream_socket: Option<Arc<UdpSocket>>Trait Implementations§
Source§impl Clone for UdpSession
impl Clone for UdpSession
Source§fn clone(&self) -> UdpSession
fn clone(&self) -> UdpSession
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 moreAuto Trait Implementations§
impl Freeze for UdpSession
impl !RefUnwindSafe for UdpSession
impl Send for UdpSession
impl Sync for UdpSession
impl Unpin for UdpSession
impl UnsafeUnpin for UdpSession
impl !UnwindSafe for UdpSession
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