pub struct UdpMulticastSocket { /* private fields */ }Implementations§
Source§impl UdpMulticastSocket
impl UdpMulticastSocket
pub fn bind(port: u16) -> Result<Self>
pub fn set_multicast_ttl(&self, ttl: u8) -> Result<()>
pub fn set_multicast_loopback(&self, enabled: bool) -> Result<()>
pub fn join_multicast_group( &self, multicast_addr: Ipv4Addr, interface: Option<Ipv4Addr>, ) -> Result<()>
pub fn leave_multicast_group( &self, multicast_addr: Ipv4Addr, interface: Option<Ipv4Addr>, ) -> Result<()>
pub fn send_to(&self, data: &[u8], dest: SocketAddrV4) -> Result<usize>
pub fn send_multicast(&self, data: &[u8], universe: u16) -> Result<usize>
pub fn recv_from(&self, buf: &mut [u8]) -> Result<(usize, SocketAddrV4)>
Auto Trait Implementations§
impl Freeze for UdpMulticastSocket
impl RefUnwindSafe for UdpMulticastSocket
impl Send for UdpMulticastSocket
impl Sync for UdpMulticastSocket
impl Unpin for UdpMulticastSocket
impl UnsafeUnpin for UdpMulticastSocket
impl UnwindSafe for UdpMulticastSocket
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