[][src]Struct entab::error::EtError

pub struct EtError {
    pub msg: String,
    pub byte: Option<u64>,
    pub record: Option<u64>,
    // some fields omitted
}

The Error struct for entab

Fields

msg: String

A succinct message describing the error

byte: Option<u64>

At what byte in a the file (if any), the error occured

record: Option<u64>

At what record in a the file (if any), the error occured.

Note, this may not be the same as the index of the iterator if the underlying file type groups e.g. record information by time slice.

Implementations

impl EtError[src]

pub fn new<T>(msg: T) -> Self where
    T: Into<String>, 
[src]

Create a new EtError with a display message of msg

pub fn fill_pos(self, reader: &ReadBuffer<'_>) -> Self[src]

Fill the positional error information from a ReadBuffer

Used to display e.g. where a parsing error in a file occured.

Trait Implementations

impl Debug for EtError[src]

impl Display for EtError[src]

impl Error for EtError[src]

impl<'_> From<&'_ str> for EtError[src]

impl From<Error> for EtError[src]

impl From<FromUtf8Error> for EtError[src]

impl From<ParseFloatError> for EtError[src]

impl From<ParseIntError> for EtError[src]

impl From<String> for EtError[src]

impl From<Utf8Error> for EtError[src]

Auto Trait Implementations

impl !RefUnwindSafe for EtError

impl !Send for EtError

impl !Sync for EtError

impl Unpin for EtError

impl !UnwindSafe for EtError

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> 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.