pub struct SharedMutationError<Failure> { /* private fields */ }Expand description
Preserves an access failure or a typed cause after retained mutation.
Implementations§
Sourcepub const fn is_committed(&self) -> bool
pub const fn is_committed(&self) -> bool
Returns whether mutation retained its writes and the publication callback returned.
Sourcepub const fn access_error(&self) -> Option<&SharedAccessError>
pub const fn access_error(&self) -> Option<&SharedAccessError>
Returns the access failure when the mutation never ran.
Sourcepub fn into_failure(self) -> Option<Failure>
pub fn into_failure(self) -> Option<Failure>
Returns the original owned mutation cause, without requiring domain traits.
Trait Implementations§
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§fn from(error: SharedAccessError) -> Self
fn from(error: SharedAccessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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