pub struct Transmit<'a> {
pub dst: SocketAddr,
pub payload: &'a [u8],
}Expand description
One outbound datagram from the sans-io core.
Fields§
§dst: SocketAddrDestination address.
payload: &'a [u8]Wire bytes (borrowed from the session’s internal scratch buffer).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Transmit<'a>
impl<'a> RefUnwindSafe for Transmit<'a>
impl<'a> Send for Transmit<'a>
impl<'a> Sync for Transmit<'a>
impl<'a> Unpin for Transmit<'a>
impl<'a> UnwindSafe for Transmit<'a>
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