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§
sourcefn is_timeout(&self) -> bool
fn is_timeout(&self) -> bool
Check if the current error is a transport timeout