pub struct MutationFailure { /* private fields */ }Expand description
Infrastructure mutation failure with explicit backend send state.
Implementations§
Source§impl MutationFailure
impl MutationFailure
Sourcepub const fn new(send_state: MutationSendState, error: InfraError) -> Self
pub const fn new(send_state: MutationSendState, error: InfraError) -> Self
Creates a mutation failure without discarding send uncertainty.
Sourcepub const fn send_state(&self) -> MutationSendState
pub const fn send_state(&self) -> MutationSendState
Returns whether the mutation may have reached the backend.
Sourcepub const fn error(&self) -> &InfraError
pub const fn error(&self) -> &InfraError
Returns the underlying infrastructure failure.
Sourcepub fn into_error(self) -> InfraError
pub fn into_error(self) -> InfraError
Consumes the wrapper and returns the infrastructure failure.
Trait Implementations§
Source§impl Clone for MutationFailure
impl Clone for MutationFailure
Source§fn clone(&self) -> MutationFailure
fn clone(&self) -> MutationFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MutationFailure
impl Debug for MutationFailure
Source§impl Display for MutationFailure
impl Display for MutationFailure
Source§impl Error for MutationFailure
impl Error for MutationFailure
1.30.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.0.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 MutationFailure
impl PartialEq for MutationFailure
Source§fn eq(&self, other: &MutationFailure) -> bool
fn eq(&self, other: &MutationFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MutationFailure
impl StructuralPartialEq for MutationFailure
Auto Trait Implementations§
impl Freeze for MutationFailure
impl RefUnwindSafe for MutationFailure
impl Send for MutationFailure
impl Sync for MutationFailure
impl Unpin for MutationFailure
impl UnsafeUnpin for MutationFailure
impl UnwindSafe for MutationFailure
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.