#[non_exhaustive]pub enum TlpMode {
NonFlit,
Flit,
}Expand description
Selects the framing mode used to interpret the raw byte buffer.
Non-flit mode covers PCIe 1.0 through 5.0. Flit mode was introduced in PCIe 6.0 and uses fixed 256-byte containers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFlit
Standard non-flit TLP framing (PCIe 1.0 – 5.0). Bytes are interpreted directly as a TLP header followed by optional payload.
Flit
Flit-mode TLP framing (PCIe 6.0+).
Supported by TlpPacket::new and TlpPacket::flit_type().
TlpPacketHeader::new with this mode returns Err(TlpError::NotImplemented).
Trait Implementations§
impl Copy for TlpMode
impl StructuralPartialEq for TlpMode
Auto Trait Implementations§
impl Freeze for TlpMode
impl RefUnwindSafe for TlpMode
impl Send for TlpMode
impl Sync for TlpMode
impl Unpin for TlpMode
impl UnsafeUnpin for TlpMode
impl UnwindSafe for TlpMode
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