pub struct UdpSession<T, C>where
T: Initiator<Connection = C>,
C: Connection,{ /* private fields */ }Expand description
A virtual UDP session that provides a socket-like API.
When this struct is dropped, its session is automatically cleaned up on the client side to prevent resource leaks.
Implementations§
Trait Implementations§
Source§impl<T, C> Drop for UdpSession<T, C>where
T: Initiator<Connection = C>,
C: Connection,
impl<T, C> Drop for UdpSession<T, C>where
T: Initiator<Connection = C>,
C: Connection,
Auto Trait Implementations§
impl<T, C> Freeze for UdpSession<T, C>
impl<T, C> !RefUnwindSafe for UdpSession<T, C>
impl<T, C> Send for UdpSession<T, C>
impl<T, C> Sync for UdpSession<T, C>
impl<T, C> Unpin for UdpSession<T, C>
impl<T, C> !UnwindSafe for UdpSession<T, C>
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