#[non_exhaustive]pub enum AllocationSessionError<E> {
UnknownStableKey(StableKey),
Substrate(E),
}Expand description
AllocationSessionError
Failure to open through a validated allocation session.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownStableKey(StableKey)
Stable key was not part of the validated allocation snapshot.
Substrate(E)
Storage substrate failed to open the validated slot.
Trait Implementations§
Source§impl<E: Clone> Clone for AllocationSessionError<E>
impl<E: Clone> Clone for AllocationSessionError<E>
Source§fn clone(&self) -> AllocationSessionError<E>
fn clone(&self) -> AllocationSessionError<E>
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<E: Debug> Debug for AllocationSessionError<E>
impl<E: Debug> Debug for AllocationSessionError<E>
Source§impl<E> Display for AllocationSessionError<E>
impl<E> Display for AllocationSessionError<E>
impl<E: Eq> Eq for AllocationSessionError<E>
Source§impl<E> Error for AllocationSessionError<E>
impl<E> Error for AllocationSessionError<E>
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<E: PartialEq> PartialEq for AllocationSessionError<E>
impl<E: PartialEq> PartialEq for AllocationSessionError<E>
Source§fn eq(&self, other: &AllocationSessionError<E>) -> bool
fn eq(&self, other: &AllocationSessionError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for AllocationSessionError<E>
Auto Trait Implementations§
impl<E> Freeze for AllocationSessionError<E>where
E: Freeze,
impl<E> RefUnwindSafe for AllocationSessionError<E>where
E: RefUnwindSafe,
impl<E> Send for AllocationSessionError<E>where
E: Send,
impl<E> Sync for AllocationSessionError<E>where
E: Sync,
impl<E> Unpin for AllocationSessionError<E>where
E: Unpin,
impl<E> UnsafeUnpin for AllocationSessionError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for AllocationSessionError<E>where
E: 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