domain::base::scan

Trait ScannerError

Source
pub trait ScannerError: Sized + Error {
    // Required methods
    fn custom(msg: &'static str) -> Self;
    fn end_of_entry() -> Self;
    fn short_buf() -> Self;
    fn trailing_tokens() -> Self;
}
Expand description

A type providing error information for a scanner.

Required Methods§

Source

fn custom(msg: &'static str) -> Self

Creates a new error wrapping a supplied error message.

Source

fn end_of_entry() -> Self

Creates an error when more tokens were expected in the entry.

Source

fn short_buf() -> Self

Creates an error when a octets buffer is too short.

Source

fn trailing_tokens() -> Self

Creates an error when there are trailing tokens.

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.

Implementations on Foreign Types§

Source§

impl ScannerError for Error

Source§

fn custom(msg: &'static str) -> Self

Source§

fn end_of_entry() -> Self

Source§

fn short_buf() -> Self

Source§

fn trailing_tokens() -> Self

Implementors§