Trait nix_compat::wire::ser::Error

source ·
pub trait Error: Sized + StdError {
    // Required method
    fn custom<T: Display>(msg: T) -> Self;

    // Provided methods
    fn io_error(err: Error) -> Self { ... }
    fn unsupported_data<T: Display>(msg: T) -> Self { ... }
    fn invalid_enum<T: Display>(msg: T) -> Self { ... }
}

Required Methods§

source

fn custom<T: Display>(msg: T) -> Self

Provided Methods§

source

fn io_error(err: Error) -> Self

source

fn unsupported_data<T: Display>(msg: T) -> Self

source

fn invalid_enum<T: Display>(msg: T) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Error for Error

source§

fn custom<T: Display>(msg: T) -> Self

source§

fn io_error(err: Error) -> Self

source§

fn unsupported_data<T: Display>(msg: T) -> Self

Implementors§