[][src]Enum xdrfile::ErrorCode

pub enum ErrorCode {
    ExdrOk,
    ExdrHeader,
    ExdrString,
    ExdrDouble,
    ExdrInt,
    ExdrFloat,
    ExdrUint,
    Exdr3dx,
    ExdrClose,
    ExdrMagic,
    ExdrNoMem,
    ExdrEndOfFile,
    ExdrFileNotFound,
    ExdrNr,
    UnmatchedCode(i32),
}

Error codes returned from the C API

Variants

ExdrOk

No error, C API returned successfully

ExdrHeader

TRR file had corrupt Header

ExdrString

Failed to read a string where expected

ExdrDouble

Failed to read a double where expected

ExdrInt

Failed to read an int where expected

ExdrFloat

Failed to read a float where expected

ExdrUint

Failed to read a uint where expected

Exdr3dx

Failed to read compressed XTC coordinates

ExdrClose

Error encountered while closing file

ExdrMagic

File had incorrect "magic number" (not an XTC file)

ExdrNoMem

Failed to allocate memory for TRR file

ExdrEndOfFile

End of file was reached while trying to read

ExdrFileNotFound

File was not found when trying to open

ExdrNr

Failed to seek within file

UnmatchedCode(i32)

Something unexpected happened

Implementations

impl ErrorCode[src]

pub fn is_eof(&self) -> bool[src]

True if the error is an end of file error, false otherwise

Trait Implementations

impl Clone for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Debug for ErrorCode[src]

impl Display for ErrorCode[src]

impl From<i32> for ErrorCode[src]

impl PartialEq<ErrorCode> for ErrorCode[src]

impl StructuralPartialEq for ErrorCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.