pub struct McOptions {
pub loopback: bool,
pub ttl: u32,
pub rcvbuf_bytes: usize,
pub reuse_addr: bool,
}Expand description
Multicast socket options applied while binding.
Fields§
§loopback: boolWhether multicast packets sent locally should be looped back.
ttl: u32IPv4 time-to-live for outbound multicast packets.
rcvbuf_bytes: usizeReceive buffer size in bytes.
reuse_addr: boolWhether to enable address/port reuse when binding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McOptions
impl RefUnwindSafe for McOptions
impl Send for McOptions
impl Sync for McOptions
impl Unpin for McOptions
impl UnwindSafe for McOptions
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