Enum netstack3_core::tcp::SendPayload
source · pub enum SendPayload<'a> {
Contiguous(&'a [u8]),
Straddle(&'a [u8], &'a [u8]),
}
Expand description
A type for the payload being sent.
Variants§
Contiguous(&'a [u8])
The payload is contained in a single chunk of memory.
Straddle(&'a [u8], &'a [u8])
The payload straddles across two chunks of memory.
Trait Implementations§
source§impl<'a> Clone for SendPayload<'a>
impl<'a> Clone for SendPayload<'a>
source§fn clone(&self) -> SendPayload<'a>
fn clone(&self) -> SendPayload<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for SendPayload<'a>
impl<'a> Debug for SendPayload<'a>
source§impl InnerPacketBuilder for SendPayload<'_>
impl InnerPacketBuilder for SendPayload<'_>
source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
Serializes this packet into an existing buffer. Read more
§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
§fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
Converts this
InnerPacketBuilder
into a [Serializer
] with a buffer
that can be used for serialization. Read moresource§impl<'a> PartialEq for SendPayload<'a>
impl<'a> PartialEq for SendPayload<'a>
source§fn eq(&self, other: &SendPayload<'a>) -> bool
fn eq(&self, other: &SendPayload<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for SendPayload<'_>
impl Payload for SendPayload<'_>
impl<'a> Copy for SendPayload<'a>
impl<'a> StructuralPartialEq for SendPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for SendPayload<'a>
impl<'a> RefUnwindSafe for SendPayload<'a>
impl<'a> Send for SendPayload<'a>
impl<'a> Sync for SendPayload<'a>
impl<'a> Unpin for SendPayload<'a>
impl<'a> UnwindSafe for SendPayload<'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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.