pub struct UdpBinder(/* private fields */);Expand description
A utility for binding UDP sockets.
See PoolExt::udp_binder for details.
Implementations§
Source§impl UdpBinder
impl UdpBinder
Sourcepub fn bind_existing_udp_socket(&self, socket: &UdpSocket) -> Result<()>
pub fn bind_existing_udp_socket(&self, socket: &UdpSocket) -> Result<()>
Bind a UdpSocket to the specified address.
A newly-created UdpSocket created with UdpSocketExt::new has not
been bound yet; this function binds it.
This is similar to Pool::bind_udp_socket in that it binds a UDP
socket, however it does not create the socket itself.
This is similar to PoolExt::bind_existing_udp_socket except that
it uses a UdpBinder which contains addresses that have already been
checked against a Pool.
Auto Trait Implementations§
impl Freeze for UdpBinder
impl RefUnwindSafe for UdpBinder
impl Send for UdpBinder
impl Sync for UdpBinder
impl Unpin for UdpBinder
impl UnsafeUnpin for UdpBinder
impl UnwindSafe for UdpBinder
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