Trait salvo_core::proto::quic::Error

source ·
pub trait Error: Error + Send + Sync {
    // Required methods
    fn is_timeout(&self) -> bool;
    fn err_code(&self) -> Option<u64>;
}
Available on crate feature quinn only.
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> From<E> for Box<dyn Error + 'a>
where E: Error + 'a,

source§

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

Converts to this type from the input type.

Implementors§