pub struct UpdateError<T> { /* private fields */ }
Expand description
An error raised by collection update operations when appropriate storage was not available. Includes an associated value that could not be stored or converted.
Implementations§
Source§impl<T> UpdateError<T>
impl<T> UpdateError<T>
Sourcepub fn error(&self) -> &StorageError
pub fn error(&self) -> &StorageError
Get a reference to the contained StorageError
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Unwrap the inner value of this error
Trait Implementations§
Source§impl<T: Clone> Clone for UpdateError<T>
impl<T: Clone> Clone for UpdateError<T>
Source§fn clone(&self) -> UpdateError<T>
fn clone(&self) -> UpdateError<T>
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<T> Debug for UpdateError<T>
impl<T> Debug for UpdateError<T>
Auto Trait Implementations§
impl<T> Freeze for UpdateError<T>where
T: Freeze,
impl<T> RefUnwindSafe for UpdateError<T>where
T: RefUnwindSafe,
impl<T> Send for UpdateError<T>where
T: Send,
impl<T> Sync for UpdateError<T>where
T: Sync,
impl<T> Unpin for UpdateError<T>where
T: Unpin,
impl<T> UnwindSafe for UpdateError<T>where
T: 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
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
)Source§impl<T, A> ToOwnedIn<A> for T
impl<T, A> ToOwnedIn<A> for T
Source§fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
To to create an owned copy of this instance in a given allocation target.
Source§fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
Create an owned copy of this instance in a given allocation target.