Trait PduProvider

Source
pub trait PduProvider {
    // Required methods
    fn pdu_type(&self) -> PduType;
    fn file_directive_type(&self) -> Option<FileDirectiveType>;
    fn pdu(&self) -> &[u8] ;
    fn packet_target(&self) -> Result<PacketTarget, PduError>;
}
Expand description

Generic trait which models a raw CFDP packet data unit (PDU) block with some additional context information.

Required Methods§

Implementors§

Source§

impl PduProvider for PduOwnedWithInfo

Available on crate feature alloc only.
Source§

impl PduProvider for DummyPduProvider

Source§

impl PduProvider for PduRawWithInfo<'_>