pub struct Socket<T>where
T: AnySocket<'static> + ?Sized,{ /* private fields */ }
Expand description
A network socket.
In order to use the socket, it must be locked using the [lock
] method.
This will lock the interface’s list of sockets, and so the guard returned by
[lock
] must be dropped before calling [Interface::poll
].
Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Socket<T>
impl<T: ?Sized> Send for Socket<T>where T: Send,
impl<T: ?Sized> Sync for Socket<T>where T: Sync,
impl<T: ?Sized> Unpin for Socket<T>where T: Unpin,
impl<T> !UnwindSafe for Socket<T>
Blanket Implementations§
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