pub struct PduRawWithInfo<'raw_packet> { /* private fields */ }
Expand description
This is a helper struct which contains base information about a particular PDU packet. This is also necessary information for CFDP packet routing. For example, some packet types like file data PDUs can only be used by CFDP source entities.
Implementations§
Trait Implementations§
Source§impl From<PduRawWithInfo<'_>> for PduOwnedWithInfo
Available on crate feature alloc
only.
impl From<PduRawWithInfo<'_>> for PduOwnedWithInfo
Available on crate feature
alloc
only.Source§fn from(value: PduRawWithInfo<'_>) -> Self
fn from(value: PduRawWithInfo<'_>) -> Self
Converts to this type from the input type.
Source§impl PduProvider for PduRawWithInfo<'_>
impl PduProvider for PduRawWithInfo<'_>
fn pdu_type(&self) -> PduType
fn file_directive_type(&self) -> Option<FileDirectiveType>
fn raw_pdu(&self) -> &[u8] ⓘ
fn packet_target(&self) -> Result<PacketTarget, PduError>
Auto Trait Implementations§
impl<'raw_packet> Freeze for PduRawWithInfo<'raw_packet>
impl<'raw_packet> RefUnwindSafe for PduRawWithInfo<'raw_packet>
impl<'raw_packet> Send for PduRawWithInfo<'raw_packet>
impl<'raw_packet> Sync for PduRawWithInfo<'raw_packet>
impl<'raw_packet> Unpin for PduRawWithInfo<'raw_packet>
impl<'raw_packet> UnwindSafe for PduRawWithInfo<'raw_packet>
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