pub enum TrapCategoryError {
Invalid(ParseIntError),
OutOfRange(u8),
InvalidAttribute {
key: String,
value: Option<String>,
},
MissingMessageAttribute,
}Expand description
Errors that can occur while parsing trap categories in response sentences.
This enum provides more detailed information about issues that can arise while parsing trap categories, such as missing categories, errors while converting category strings to integers, or categories that are out of range.
Variants§
Invalid(ParseIntError)
Invalid value encountered while parsing a trap category.
OutOfRange(u8)
Error indicating that a trap category is out of range. Valid categories are 0-7.
InvalidAttribute
Trap expects a category or message, but got something else.
Fields
MissingMessageAttribute
Missing category attribute in a trap response.
Trait Implementations§
Source§impl Debug for TrapCategoryError
impl Debug for TrapCategoryError
Source§impl From<TrapCategoryError> for ProtocolError
impl From<TrapCategoryError> for ProtocolError
Source§fn from(e: TrapCategoryError) -> Self
fn from(e: TrapCategoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrapCategoryError
impl RefUnwindSafe for TrapCategoryError
impl Send for TrapCategoryError
impl Sync for TrapCategoryError
impl Unpin for TrapCategoryError
impl UnwindSafe for TrapCategoryError
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