pub enum PduError {
Io(Error),
Utf8(FromUtf8Error),
BufferTooShort,
InvalidCommandId(u32),
StringTooLong(String, usize),
InvalidLength,
}Expand description
Error type for PDU operations
Variants§
Io(Error)
IO Error
Utf8(FromUtf8Error)
UTF-8 Conversion Error
BufferTooShort
Buffer is too short to contain expected data
InvalidCommandId(u32)
Invalid Command ID encountered
StringTooLong(String, usize)
String exceeds maximum allowed length
InvalidLength
Invalid Length for a field
Trait Implementations§
Source§impl Error for PduError
impl Error for PduError
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()
Auto Trait Implementations§
impl Freeze for PduError
impl !RefUnwindSafe for PduError
impl Send for PduError
impl Sync for PduError
impl Unpin for PduError
impl !UnwindSafe for PduError
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