Enum rivlib::error::Error [] [src]

pub enum Error {
    Nul(NulError),
    Scanifc(i32, String),
    Utf8(Utf8Error),
}

Crate-specific errors.

Variants

Nul

Wrapper around std::ffi::NulError.

Scanifc

An error that occurs during a scanifc call.

Scanifc errors are retrieved from the scanifc library if a ffi function returns nonzero.

Utf8

Wrapper around std::str::Utf8Error.

Trait Implementations

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl From<NulError> for Error

fn from(err: NulError) -> Error

impl From<Utf8Error> for Error

fn from(err: Utf8Error) -> Error

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result