Type Alias ApiError

Source
pub type ApiError = Error<Error>;

Aliased Type§

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: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 20 bytes

Size for each variant:

  • Api: 12 bytes
  • Utf8: 12 bytes
  • FromUtf8: 20 bytes
  • CStr: 20 bytes
  • NullPtr: 0 bytes