pub struct ErrorCode { /* private fields */ }Expand description
Error code and error message.
Implementations§
Source§impl ErrorCode
impl ErrorCode
pub const BAD_REQUEST: Self
pub const UNAUTHORIZED: Self
pub const UNKNOWN_ATTRIBUTES: Self
Sourcepub const fn new_static(code: u16, msg: &'static str) -> Self
pub const fn new_static(code: u16, msg: &'static str) -> Self
Create a new error code with a given code and a message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more