pub struct ServerError {
pub message: String,
pub error_type: ErrorType,
}
Fields§
§message: String
§error_type: ErrorType
Implementations§
Source§impl ServerError
impl ServerError
pub fn new(message: &str, error_type: ErrorType) -> ServerError
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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