pub enum PduVariant<'a> {
Eof(&'a EofPdu),
Finished(&'a FinishedPdu),
Ack(&'a AckPdu),
Metadata(&'a MetadataPdu),
FileData(FileDataPdu<'a>),
Nak(NakPdu<'a>),
Prompt(&'a PromptPdu),
KeepAlive(KeepAlivePdu<'a>),
}Expand description
An enum representing a zero-copy view of a parsed PDU.
Variants§
Eof(&'a EofPdu)
A view of an End of File (EOF) PDU.
Finished(&'a FinishedPdu)
A view of a Finished PDU.
Ack(&'a AckPdu)
A view of an Acknowledgment (ACK) PDU.
Metadata(&'a MetadataPdu)
A view of a Metadata PDU.
FileData(FileDataPdu<'a>)
A view of a File Data PDU.
Nak(NakPdu<'a>)
A view of a Negative Acknowledgment (NAK) PDU.
Prompt(&'a PromptPdu)
A view of a Prompt PDU.
KeepAlive(KeepAlivePdu<'a>)
A view of a Keep Alive PDU.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PduVariant<'a>
impl<'a> RefUnwindSafe for PduVariant<'a>
impl<'a> Send for PduVariant<'a>
impl<'a> Sync for PduVariant<'a>
impl<'a> Unpin for PduVariant<'a>
impl<'a> UnsafeUnpin for PduVariant<'a>
impl<'a> UnwindSafe for PduVariant<'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