pub struct TxPacket<'a, I: IpExt, S> { /* private fields */ }
Expand description
An outgoing IP packet that has not yet been wrapped into an outer serializer type.
Implementations§
Trait Implementations§
Source§impl<'a, I: IpExt, S, IpType> GenericOverIp<IpType> for TxPacket<'a, I, S>
impl<'a, I: IpExt, S, IpType> GenericOverIp<IpType> for TxPacket<'a, I, S>
Source§impl<I: IpExt, S: TransportPacketSerializer<I>> IpPacket<I> for TxPacket<'_, I, S>
impl<I: IpExt, S: TransportPacketSerializer<I>> IpPacket<I> for TxPacket<'_, I, S>
Source§type TransportPacket<'a> = &'a S
where
Self: 'a
type TransportPacket<'a> = &'a S where Self: 'a
The type that provides access to transport-layer header inspection, if a
transport header is contained in the body of the IP packet.
Source§type TransportPacketMut<'a> = &'a mut S
where
Self: 'a
type TransportPacketMut<'a> = &'a mut S where Self: 'a
The type that provides access to transport-layer header modification, if a
transport header is contained in the body of the IP packet.
Source§fn set_src_addr(&mut self, addr: I::Addr)
fn set_src_addr(&mut self, addr: I::Addr)
Sets the source IP address of the packet.
Source§fn set_dst_addr(&mut self, addr: I::Addr)
fn set_dst_addr(&mut self, addr: I::Addr)
Sets the destination IP address of the packet.
Source§fn maybe_transport_packet(&self) -> Self::TransportPacket<'_>
fn maybe_transport_packet(&self) -> Self::TransportPacket<'_>
Returns a type that provides access to the transport-layer packet contained
in the body of the IP packet, if one exists. Read more
Source§fn transport_packet_mut(&mut self) -> Self::TransportPacketMut<'_>
fn transport_packet_mut(&mut self) -> Self::TransportPacketMut<'_>
Returns a type that provides the ability to modify the transport-layer
packet contained in the body of the IP packet, if one exists. Read more
impl<'a, I: IpExt, S> StructuralPartialEq for TxPacket<'a, I, S>
Auto Trait Implementations§
impl<'a, I, S> Freeze for TxPacket<'a, I, S>
impl<'a, I, S> RefUnwindSafe for TxPacket<'a, I, S>
impl<'a, I, S> Send for TxPacket<'a, I, S>where
S: Send,
impl<'a, I, S> Sync for TxPacket<'a, I, S>where
S: Sync,
impl<'a, I, S> Unpin for TxPacket<'a, I, S>
impl<'a, I, S> !UnwindSafe for TxPacket<'a, I, S>
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more