pub trait ErrorCode: Error + Debug + Send + Sync + 'static { // Required method fn code(&self) -> Option<u32>; }