1 2 3 4 5 6 7
use std::error::Error; use std::fmt::Debug; // An error that optionally contains a QUIC error code. pub trait ErrorCode: Error + Debug + Send + Sync + 'static { fn code(&self) -> Option<u32>; }