pub struct UdpSocket { /* private fields */ }
Expand description
Provides a handle into the bound port table.
When binding to a port, the socket is consumed and Udp{Sender, Receiver}Binding structs are returned. When undbinding, the socket is returned and can be used to bind to other ports.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdpSocket
impl !RefUnwindSafe for UdpSocket
impl !Send for UdpSocket
impl !Sync for UdpSocket
impl Unpin for UdpSocket
impl !UnwindSafe for UdpSocket
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