pub enum Error {
InvalidEntryType(u8),
InvalidOptionType(u8),
InvalidOptionTransportProtocol(u8),
IncorrectOptionsSize(usize),
InvalidOptionLength {
option_type: u8,
expected: u16,
actual: u16,
},
ConfigurationStringTooLong(usize),
InvalidMessage(&'static str),
IncorrectEntriesSize(usize),
}Expand description
Errors that can occur when parsing or validating SOME/IP-SD messages.
Variants§
InvalidEntryType(u8)
The entry type byte is not a recognized SD entry type.
InvalidOptionType(u8)
The option type byte is not a recognized SD option type.
InvalidOptionTransportProtocol(u8)
The transport protocol byte is not a recognized value.
IncorrectOptionsSize(usize)
The declared options size does not match the actual data.
InvalidOptionLength
An option’s length field does not match the expected size for its type.
Fields
ConfigurationStringTooLong(usize)
A configuration string exceeds the maximum allowed length.
InvalidMessage(&'static str)
An SD message failed structural validation.
IncorrectEntriesSize(usize)
The entries array length is not a multiple of the entry size (16 bytes).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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