Type Alias AllocatorMutation

Source
pub type AllocatorMutation = AllocatorMutationV32;

Aliased Type§

enum AllocatorMutation {
    Allocate {
        device_range: DeviceRangeV32,
        owner_object_id: u64,
    },
    Deallocate {
        device_range: DeviceRangeV32,
        owner_object_id: u64,
    },
    SetLimit {
        owner_object_id: u64,
        bytes: u64,
    },
    MarkForDeletion(u64),
}

Variants§

§

Allocate

Fields

§device_range: DeviceRangeV32
§owner_object_id: u64
§

Deallocate

Fields

§device_range: DeviceRangeV32
§owner_object_id: u64
§

SetLimit

Fields

§owner_object_id: u64
§bytes: u64
§

MarkForDeletion(u64)

Marks all extents with a given owner_object_id for deletion. Used to free space allocated to encrypted ObjectStore where we may not have the key. Note that the actual deletion time is undefined so this should never be used where an ObjectStore is still in use due to a high risk of corruption. Similarly, owner_object_id should never be reused for the same reasons.

Trait Implementations

Source§

impl Clone for AllocatorMutationV32

Source§

fn clone(&self) -> AllocatorMutationV32

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AllocatorMutationV32

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AllocatorMutationV32

Source§

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 Ord for AllocatorMutationV32

Source§

fn cmp(&self, other: &AllocatorMutationV32) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for AllocatorMutationV32

Source§

fn eq(&self, other: &AllocatorMutationV32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for AllocatorMutationV32

Source§

fn partial_cmp(&self, other: &AllocatorMutationV32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for AllocatorMutationV32

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TypeFingerprint for AllocatorMutationV32

Source§

impl Eq for AllocatorMutationV32

Source§

impl StructuralPartialEq for AllocatorMutationV32