pub struct AsyncMulticastSocket { /* private fields */ }
Implementations§
Source§impl AsyncMulticastSocket
impl AsyncMulticastSocket
pub async fn receive(&self) -> Result<Message>
pub async fn send_to( &self, buf: &[u8], interface: &Interface, addr: SocketAddrV4, ) -> Result<usize>
pub async fn send(&self, buf: &[u8], interface: &Interface) -> Result<usize>
pub async fn broadcast_to(&self, buf: &[u8], addr: SocketAddrV4) -> Result<()>
pub async fn broadcast(&self, buf: &[u8]) -> Result<()>
Trait Implementations§
Source§impl TryFrom<MulticastSocket> for AsyncMulticastSocket
Converts this socket in to one with an async
API.
This will call bind
on the socket if it has not already
been bound.
impl TryFrom<MulticastSocket> for AsyncMulticastSocket
Converts this socket in to one with an async
API.
This will call bind
on the socket if it has not already
been bound.
Auto Trait Implementations§
impl !Freeze for AsyncMulticastSocket
impl RefUnwindSafe for AsyncMulticastSocket
impl Send for AsyncMulticastSocket
impl Sync for AsyncMulticastSocket
impl Unpin for AsyncMulticastSocket
impl UnwindSafe for AsyncMulticastSocket
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