pub struct Transmit { /* private fields */ }Expand description
Outgoing datagram metadata produced by the proto state machines.
The proto writes the actual bytes into a caller-supplied &mut [u8];
this struct describes where the bytes go and how many were written.
Implementations§
Source§impl Transmit
impl Transmit
Sourcepub const fn new(dst: SocketAddr, src_ip: Option<IpAddr>, size: usize) -> Self
pub const fn new(dst: SocketAddr, src_ip: Option<IpAddr>, size: usize) -> Self
Creates a new transmit descriptor.
Sourcepub const fn dst(&self) -> SocketAddr
pub const fn dst(&self) -> SocketAddr
Destination socket address (typically the mDNS multicast group).
Trait Implementations§
impl Copy for Transmit
impl Eq for Transmit
impl StructuralPartialEq for Transmit
Auto Trait Implementations§
impl Freeze for Transmit
impl RefUnwindSafe for Transmit
impl Send for Transmit
impl Sync for Transmit
impl Unpin for Transmit
impl UnsafeUnpin for Transmit
impl UnwindSafe for Transmit
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