pub struct MulticastOptions {
pub read_timeout: Option<Duration>,
pub loopback: bool,
pub buffer_size: usize,
pub bind_address: Ipv4Addr,
}Fields§
§read_timeout: Option<Duration>The maximal timeout before MulticastSocket::receive returns.
If this is None, MulticastSocket::receive will block until there is data to read.
loopback: bool§buffer_size: usize§bind_address: Ipv4AddrThe address to bind the socket to.
Usually this will be Ipv4Addr::UNSPECIFIED, in order to listen for packets on all interfaces.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MulticastOptions
impl RefUnwindSafe for MulticastOptions
impl Send for MulticastOptions
impl Sync for MulticastOptions
impl Unpin for MulticastOptions
impl UnwindSafe for MulticastOptions
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