pub struct AllocationRetirement {
pub stable_key: StableKey,
pub slot: AllocationSlotDescriptor,
}Expand description
AllocationRetirement
Explicit request to tombstone one historical allocation identity.
Fields§
§stable_key: StableKeyStable key being retired.
slot: AllocationSlotDescriptorAllocation slot historically owned by the stable key.
Implementations§
Source§impl AllocationRetirement
impl AllocationRetirement
Sourcepub fn new(
stable_key: impl AsRef<str>,
slot: AllocationSlotDescriptor,
) -> Result<Self, AllocationRetirementError>
pub fn new( stable_key: impl AsRef<str>, slot: AllocationSlotDescriptor, ) -> Result<Self, AllocationRetirementError>
Build an explicit retirement request from raw parts.
Trait Implementations§
Source§impl Clone for AllocationRetirement
impl Clone for AllocationRetirement
Source§fn clone(&self) -> AllocationRetirement
fn clone(&self) -> AllocationRetirement
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 AllocationRetirement
impl Debug for AllocationRetirement
Source§impl<'de> Deserialize<'de> for AllocationRetirement
impl<'de> Deserialize<'de> for AllocationRetirement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AllocationRetirement
impl PartialEq for AllocationRetirement
Source§fn eq(&self, other: &AllocationRetirement) -> bool
fn eq(&self, other: &AllocationRetirement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AllocationRetirement
impl Serialize for AllocationRetirement
impl Eq for AllocationRetirement
impl StructuralPartialEq for AllocationRetirement
Auto Trait Implementations§
impl Freeze for AllocationRetirement
impl RefUnwindSafe for AllocationRetirement
impl Send for AllocationRetirement
impl Sync for AllocationRetirement
impl Unpin for AllocationRetirement
impl UnsafeUnpin for AllocationRetirement
impl UnwindSafe for AllocationRetirement
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