pub struct MulticastUdpSocket { /* private fields */ }Implementations§
Source§impl MulticastUdpSocket
impl MulticastUdpSocket
pub fn new( port: u16, ipv4_addr: Ipv4Addr, ipv6_site_local: Ipv6Addr, ipv6_link_local: Option<Ipv6Addr>, ) -> Result<Self>
pub fn nics(&self) -> &[NetworkInterface]
pub async fn recv_from(&self, buf: &mut [u8]) -> Result<(usize, SocketAddr)>
pub async fn send_to(&self, buf: &[u8], addr: SocketAddr) -> Result<usize>
pub async fn try_send_mcast_everywhere( &self, get_payload: &impl Fn(&MulticastOpts) -> BString, )
Auto Trait Implementations§
impl !Freeze for MulticastUdpSocket
impl RefUnwindSafe for MulticastUdpSocket
impl Send for MulticastUdpSocket
impl Sync for MulticastUdpSocket
impl Unpin for MulticastUdpSocket
impl UnwindSafe for MulticastUdpSocket
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