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: StringThe error message.
fatality: ServerMockerErrorFatalityThe error fatality - fatal if the mocked server stopped.
Implementations§
Trait Implementations§
source§impl Clone for ServerMockerError
impl Clone for ServerMockerError
source§fn clone(&self) -> ServerMockerError
fn clone(&self) -> ServerMockerError
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ServerMockerError
impl Debug for ServerMockerError
source§impl Display for ServerMockerError
impl Display for ServerMockerError
Will display:
“{Fatal | Non fatal}: {error message}”
source§impl Error for ServerMockerError
impl Error for ServerMockerError
Ensure that std::error::Error is implemented for ServerMockerError
1.81.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for ServerMockerError
impl PartialEq for ServerMockerError
impl Eq for ServerMockerError
impl StructuralPartialEq for ServerMockerError
Auto Trait Implementations§
impl Freeze for ServerMockerError
impl RefUnwindSafe for ServerMockerError
impl Send for ServerMockerError
impl Sync for ServerMockerError
impl Unpin for ServerMockerError
impl UnwindSafe for ServerMockerError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)