pub struct UdpSession<T> {
pub external_addr: SocketAddr,
pub local_data: T,
pub last_activity: Instant,
}Fields§
§external_addr: SocketAddr§local_data: T§last_activity: InstantTrait Implementations§
Source§impl<T: Clone> Clone for UdpSession<T>
impl<T: Clone> Clone for UdpSession<T>
Source§fn clone(&self) -> UdpSession<T>
fn clone(&self) -> UdpSession<T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for UdpSession<T>where
T: Freeze,
impl<T> RefUnwindSafe for UdpSession<T>where
T: RefUnwindSafe,
impl<T> Send for UdpSession<T>where
T: Send,
impl<T> Sync for UdpSession<T>where
T: Sync,
impl<T> Unpin for UdpSession<T>where
T: Unpin,
impl<T> UnwindSafe for UdpSession<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)