pub enum AllocationRetirementError {
Key(StableKeyError),
UnknownStableKey(StableKey),
SlotMismatch {
stable_key: StableKey,
historical_slot: Box<AllocationSlotDescriptor>,
retired_slot: Box<AllocationSlotDescriptor>,
},
AlreadyRetired {
stable_key: StableKey,
slot: Box<AllocationSlotDescriptor>,
},
}Expand description
AllocationRetirementError
Failure to stage an explicit retirement generation.
Variants§
Key(StableKeyError)
Stable-key grammar failure.
UnknownStableKey(StableKey)
Stable key has no historical allocation record.
SlotMismatch
Stable key was historically bound to a different slot.
Fields
§
historical_slot: Box<AllocationSlotDescriptor>Historical slot for the stable key.
§
retired_slot: Box<AllocationSlotDescriptor>Slot named by the retirement request.
AlreadyRetired
Allocation was already retired.
Fields
§
slot: Box<AllocationSlotDescriptor>Retired allocation slot.
Trait Implementations§
Source§impl Clone for AllocationRetirementError
impl Clone for AllocationRetirementError
Source§fn clone(&self) -> AllocationRetirementError
fn clone(&self) -> AllocationRetirementError
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 AllocationRetirementError
impl Debug for AllocationRetirementError
Source§impl Display for AllocationRetirementError
impl Display for AllocationRetirementError
Source§impl Error for AllocationRetirementError
impl Error for AllocationRetirementError
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 AllocationRetirementError
impl PartialEq for AllocationRetirementError
Source§fn eq(&self, other: &AllocationRetirementError) -> bool
fn eq(&self, other: &AllocationRetirementError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AllocationRetirementError
impl StructuralPartialEq for AllocationRetirementError
Auto Trait Implementations§
impl Freeze for AllocationRetirementError
impl RefUnwindSafe for AllocationRetirementError
impl Send for AllocationRetirementError
impl Sync for AllocationRetirementError
impl Unpin for AllocationRetirementError
impl UnsafeUnpin for AllocationRetirementError
impl UnwindSafe for AllocationRetirementError
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