Skip to main content

CodecError

Trait CodecError 

Source
pub trait CodecError:
    Error
    + Send
    + Sync
    + 'static {
    // Required methods
    fn is_truncated(&self) -> bool;
    fn is_not_implemented(&self) -> bool;
    fn is_unsupported(&self) -> bool;
    fn is_buffer_error(&self) -> bool;
}
Expand description

Shared error classification used by facade traits.

Required Methods§

Source

fn is_truncated(&self) -> bool

True when the error indicates truncated input.

Source

fn is_not_implemented(&self) -> bool

True when the error indicates an unimplemented supported surface.

Source

fn is_unsupported(&self) -> bool

True when the error indicates unsupported input or options.

Source

fn is_buffer_error(&self) -> bool

True when the error indicates caller buffer sizing or layout problems.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§