pub struct StdUdpSocket(/* private fields */);
Trait Implementations§
Source§impl ConnectedUdp for StdUdpSocket
impl ConnectedUdp for StdUdpSocket
Source§impl Multicast for StdUdpSocket
impl Multicast for StdUdpSocket
Source§impl UnconnectedUdp for StdUdpSocket
impl UnconnectedUdp for StdUdpSocket
Source§async fn send(
&mut self,
local: SocketAddr,
remote: SocketAddr,
data: &[u8],
) -> Result<(), Self::Error>
async fn send( &mut self, local: SocketAddr, remote: SocketAddr, data: &[u8], ) -> Result<(), Self::Error>
Send the provided data to a peer Read more
Source§async fn receive_into(
&mut self,
buffer: &mut [u8],
) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
async fn receive_into( &mut self, buffer: &mut [u8], ) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
Receive a datagram into the provided buffer. Read more
Auto Trait Implementations§
impl Freeze for StdUdpSocket
impl RefUnwindSafe for StdUdpSocket
impl Send for StdUdpSocket
impl Sync for StdUdpSocket
impl Unpin for StdUdpSocket
impl UnwindSafe for StdUdpSocket
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