Trait UnsupportedVersionErr

Source
pub trait UnsupportedVersionErr {
    // Required method
    fn unsupported_version(context: &'static str, got: u8) -> Self;
}
Expand description

Trait for creating “unsupported version” errors.

Required Methods§

Source

fn unsupported_version(context: &'static str, got: u8) -> Self

Creates a new “unsupported version” error.

§Arguments
  • context - The context in which the error occurred.
  • got - The unsupported version received.
§Returns

A new error instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§