pub struct Transmit {
pub destination: SocketAddr,
pub size: usize,
pub segment_size: Option<usize>,
}Expand description
One or more datagrams in the caller’s buffer, all to destination. When
segment_size is set, the buffer holds several datagrams of that size (the last may be
shorter): suitable for GSO, or to be split by the caller.
Fields§
§destination: SocketAddr§size: usize§segment_size: Option<usize>Trait Implementations§
impl Copy for Transmit
impl Eq for Transmit
impl StructuralPartialEq for Transmit
Auto Trait Implementations§
impl Forget for Transmit
impl Freeze for Transmit
impl Move 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