pub(crate) struct LocationOutOfDateSnafu<__T0, __T1> {
pub(crate) stored_location: __T0,
pub(crate) expected_location: __T1,
}
Expand description
SNAFU context selector for the PersistenceError::LocationOutOfDate
variant
Fields§
§stored_location: __T0
§expected_location: __T1
Implementations§
Source§impl<__T0, __T1> LocationOutOfDateSnafu<__T0, __T1>
impl<__T0, __T1> LocationOutOfDateSnafu<__T0, __T1>
Sourcepub(crate) fn build(self) -> PersistenceError
pub(crate) fn build(self) -> PersistenceError
Consume the selector and return the associated error
Sourcepub(crate) fn fail<__T>(self) -> Result<__T, PersistenceError>
pub(crate) fn fail<__T>(self) -> Result<__T, PersistenceError>
Consume the selector and return a Result
with the associated error
Trait Implementations§
Source§impl<__T0: Clone, __T1: Clone> Clone for LocationOutOfDateSnafu<__T0, __T1>
impl<__T0: Clone, __T1: Clone> Clone for LocationOutOfDateSnafu<__T0, __T1>
Source§fn clone(&self) -> LocationOutOfDateSnafu<__T0, __T1>
fn clone(&self) -> LocationOutOfDateSnafu<__T0, __T1>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<__T0, __T1> IntoError<PersistenceError> for LocationOutOfDateSnafu<__T0, __T1>where
PersistenceError: Error + ErrorCompat,
__T0: Into<StorageLocation>,
__T1: Into<StorageLocation>,
impl<__T0, __T1> IntoError<PersistenceError> for LocationOutOfDateSnafu<__T0, __T1>where
PersistenceError: Error + ErrorCompat,
__T0: Into<StorageLocation>,
__T1: Into<StorageLocation>,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
impl<__T0: Copy, __T1: Copy> Copy for LocationOutOfDateSnafu<__T0, __T1>
Auto Trait Implementations§
impl<__T0, __T1> Freeze for LocationOutOfDateSnafu<__T0, __T1>
impl<__T0, __T1> RefUnwindSafe for LocationOutOfDateSnafu<__T0, __T1>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
impl<__T0, __T1> Send for LocationOutOfDateSnafu<__T0, __T1>
impl<__T0, __T1> Sync for LocationOutOfDateSnafu<__T0, __T1>
impl<__T0, __T1> Unpin for LocationOutOfDateSnafu<__T0, __T1>
impl<__T0, __T1> UnwindSafe for LocationOutOfDateSnafu<__T0, __T1>where
__T0: UnwindSafe,
__T1: UnwindSafe,
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