Trait Error

Source
pub trait Error:
    Error
    + Send
    + Sync {
    // Required methods
    fn is_timeout(&self) -> bool;
    fn err_code(&self) -> Option<u64>;
}
Expand description

Trait that represent an error from the transport layer

Required Methods§

Source

fn is_timeout(&self) -> bool

Check if the current error is a transport timeout

Source

fn err_code(&self) -> Option<u64>

Get the QUIC error code from connection close or stream stop

Trait Implementations§

Source§

impl<'a, E: Error + 'a> From<E> for Box<dyn Error + 'a>

Source§

fn from(err: E) -> Box<dyn Error + 'a>

Converts to this type from the input type.

Implementors§