Enum sacn::error::ParseError
[−]
[src]
pub enum ParseError<'a> { Uuid(UUidParseError), Utf8(Utf8Error), PduInvalidFlags(u8), PduInvalidLength(usize), PduInvalidVector(u32), InvalidData(&'a str), NotEnoughData, }
Errors for parsing of sACN network packets.
Variants
Uuid(UUidParseError)
Error parsing the received UUID.
Utf8(Utf8Error)
Error parsing received UTF8 string.
PduInvalidFlags(u8)
Received PDU flags are invalid.
PduInvalidLength(usize)
Received PDU length is invalid.
PduInvalidVector(u32)
Received PDU vector is invalid.
InvalidData(&'a str)
Other invalid data received.
NotEnoughData
Buffer does not contain enough data.
Trait Implementations
impl<'a> Debug for ParseError<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Display for ParseError<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Error for ParseError<'a>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl<'a> From<UUidParseError> for ParseError<'a>
[src]
fn from(err: UUidParseError) -> ParseError<'a>
[src]
Performs the conversion.
impl<'a> From<Utf8Error> for ParseError<'a>
[src]
fn from(err: Utf8Error) -> ParseError<'a>
[src]
Performs the conversion.