pub enum TlpError {
InvalidFormat,
InvalidType,
UnsupportedCombination,
InvalidLength,
NotImplemented,
MissingMandatoryOhc,
}Expand description
Errors that can occur when parsing TLP packets
Variants§
InvalidFormat
Invalid format field value (bits don’t match any known format)
InvalidType
Invalid type field value (bits don’t match any known type encoding)
UnsupportedCombination
Unsupported combination of format and type
InvalidLength
Payload/header byte slice is too short to contain the expected fields
NotImplemented
Feature exists in the API but is not yet implemented
MissingMandatoryOhc
A TLP type that requires a mandatory OHC word was parsed without it (e.g. I/O Write missing OHC-A2, Configuration Write missing OHC-A3)
Trait Implementations§
Source§impl Error for TlpError
impl Error for TlpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for TlpError
Auto Trait Implementations§
impl Freeze for TlpError
impl RefUnwindSafe for TlpError
impl Send for TlpError
impl Sync for TlpError
impl Unpin for TlpError
impl UnsafeUnpin for TlpError
impl UnwindSafe for TlpError
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