Enum natnet_decode::ParseError [] [src]

pub enum ParseError {
    UnknownError,
    UnknownResponse(u16),
    IO(Error),
    StringError,
    NotEnoughBytes,
}

Errors caused during message parsing

Variants

Something unexpected happened

This error is returned when End-Of-Data marker is not as expected, this most likely mean that all data parsed is garbage and that there is a version mismatch.

Unknown message received from Motive

The number included is the message ID given by NatNet.

Problem reading bytes from input source

This error is caused by an IO error on the given input source the cause of the IO error is returned so that users can inspect the cause.

Problem converting C-String in Motive

There was a problem converting the bytes that Motive considers a string into what Rust considers a String.

There were not enough bytes in the source to parse a complete message

This is most likely caused by a mismatch in versions.

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter.

impl From<Error> for ParseError
[src]

Convert an IO error into a ParseError

impl From<NulError> for ParseError
[src]

Convert a std::ffi::NulError into a ParseError::StringError

impl Display for ParseError
[src]

Format ParseError in human readable fashion

impl StdError for ParseError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more