pub struct Transmit {
pub dst: SocketAddr,
pub segment_size: Option<usize>,
pub payload: Vec<u8>,
}Expand description
An owned datagram ready to be written by the shell. payload is the single
admission copy (Vec<u8>); for the first upstream datagram of a PPv2 flow
the core has already prepended the v2 DGRAM header, so the shell writes
payload verbatim. segment_size reserves room for a future GSO/GRO fast
path and is None in phase 1.
Fields§
§dst: SocketAddrDestination address (backend for upstream, real client for return).
segment_size: Option<usize>GSO segment size hint; None in phase 1 (no batching).
payload: Vec<u8>Owned datagram bytes, PPv2-prefixed in place when applicable.
Trait Implementations§
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.