Struct cap_net_ext::UdpConnecter
source · pub struct UdpConnecter(/* private fields */);
Expand description
A utility for making UDP connections.
See PoolExt::udp_connecter
for details.
Implementations§
source§impl UdpConnecter
impl UdpConnecter
sourcepub fn connect_existing_udp_socket(&self, socket: &UdpSocket) -> Result<()>
pub fn connect_existing_udp_socket(&self, socket: &UdpSocket) -> Result<()>
Initiate a UDP connection.
This is simlar to Pool::connect_udp_socket
in that it performs a
UDP connection, but instead of creating a new socket itself it takes a
UdpSocket
, such as one created with UdpSocketExt::new
.
This is similar to PoolExt::connect_existing_udp_socket
except that
it uses a UdpConnecter
which contains addresses that have already
been checked against a Pool
.
Auto Trait Implementations§
impl Freeze for UdpConnecter
impl RefUnwindSafe for UdpConnecter
impl Send for UdpConnecter
impl Sync for UdpConnecter
impl Unpin for UdpConnecter
impl UnwindSafe for UdpConnecter
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