Type Alias ApiError

Source
pub type ApiError = Error<Error>;

Aliased Type§

pub enum ApiError {
    Api(Error),
    Utf8(Utf8Error),
    FromUtf8(FromUtf8Error),
    CStr(NulError),
    NullPtr(NullPtrError),
}

Variants§

§

Api(Error)

§

Utf8(Utf8Error)

§

FromUtf8(FromUtf8Error)

§

CStr(NulError)

§

NullPtr(NullPtrError)

Trait Implementations§

Source§

impl From<Error> for ApiError

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.