Trait domain::base::scan::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.

Object Safety§

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§