pub struct MulticastWriter { /* private fields */ }
Expand description
is writer for multicast.
MulticastWriter
uses the natual UDP packet as message boundary.
Implementations§
Source§impl MulticastWriter
impl MulticastWriter
Sourcepub fn new(multicast_addr: SocketAddrV4) -> Result<MulticastWriter>
pub fn new(multicast_addr: SocketAddrV4) -> Result<MulticastWriter>
returns a new instance of MulticastWriter
.
addr
is the address the sending socket binds to, and also the address that it sends to.
Trait Implementations§
Source§impl Debug for MulticastWriter
impl Debug for MulticastWriter
Auto Trait Implementations§
impl Freeze for MulticastWriter
impl RefUnwindSafe for MulticastWriter
impl Send for MulticastWriter
impl Sync for MulticastWriter
impl Unpin for MulticastWriter
impl UnwindSafe for MulticastWriter
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