pub struct ServerMockerError {
pub message: String,
pub fatality: ServerMockerErrorFatality,
}
Expand description
Represents an error raised by a server mocker.
The error is raised directly during call to ServerMocker methods, or when the server mocker is running asynchronously and an error occurs.
If so, errors can be retrieved with ServerMocker::pop_server_error method.
Fields
message: String
The error message.
fatality: ServerMockerErrorFatality
The error fatality - fatal if the mocked server stopped.
Implementations
Trait Implementations
sourceimpl Clone for ServerMockerError
impl Clone for ServerMockerError
sourcefn clone(&self) -> ServerMockerError
fn clone(&self) -> ServerMockerError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerMockerError
impl Debug for ServerMockerError
sourceimpl Display for ServerMockerError
impl Display for ServerMockerError
Will display:
“{Fatal | Non fatal}: {error message}”
sourceimpl Error for ServerMockerError
impl Error for ServerMockerError
Ensure that std::error::Error is implemented for ServerMockerError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ServerMockerError> for ServerMockerError
impl PartialEq<ServerMockerError> for ServerMockerError
sourcefn eq(&self, other: &ServerMockerError) -> bool
fn eq(&self, other: &ServerMockerError) -> bool
impl Eq for ServerMockerError
impl StructuralEq for ServerMockerError
impl StructuralPartialEq for ServerMockerError
Auto Trait Implementations
impl RefUnwindSafe for ServerMockerError
impl Send for ServerMockerError
impl Sync for ServerMockerError
impl Unpin for ServerMockerError
impl UnwindSafe for ServerMockerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more