pub type Mutation = MutationV43;
Expand description
The journal consists of these records which will be replayed at mount time. Within a transaction, these are stored as a set which allows some mutations to be deduplicated and found (and we require custom comparison functions below). For example, we need to be able to find object size changes.
Aliased Type§
enum Mutation {
ObjectStore(ObjectStoreMutationV43),
EncryptedObjectStore(Box<[u8]>),
Allocator(AllocatorMutationV32),
BeginFlush,
EndFlush,
DeleteVolume,
UpdateBorrowed(u64),
UpdateMutationsKey(UpdateMutationsKeyV40),
CreateInternalDir(u64),
}
Variants§
ObjectStore(ObjectStoreMutationV43)
EncryptedObjectStore(Box<[u8]>)
Allocator(AllocatorMutationV32)
BeginFlush
EndFlush
DeleteVolume
UpdateBorrowed(u64)
UpdateMutationsKey(UpdateMutationsKeyV40)
CreateInternalDir(u64)
Implementations§
Source§impl Mutation
impl Mutation
pub fn insert_object(key: ObjectKey, value: ObjectValue) -> Self
pub fn replace_or_insert_object(key: ObjectKey, value: ObjectValue) -> Self
pub fn merge_object(key: ObjectKey, value: ObjectValue) -> Self
pub fn update_mutations_key(key: WrappedKey) -> Self
Trait Implementations§
Source§impl From<MutationV40> for Mutation
impl From<MutationV40> for Mutation
Source§fn from(item: MutationV40) -> Self
fn from(item: MutationV40) -> Self
Converts to this type from the input type.
Source§impl VersionedLatest for Mutation
impl VersionedLatest for Mutation
Source§fn deserialize_from_version<R>(reader: &mut R, version: Version) -> Result<Self>
fn deserialize_from_version<R>(reader: &mut R, version: Version) -> Result<Self>
Deserializes from a given version format and upgrades to the latest version.
Source§impl Clone for MutationV43
impl Clone for MutationV43
Source§fn clone(&self) -> MutationV43
fn clone(&self) -> MutationV43
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 Debug for MutationV43
impl Debug for MutationV43
Source§impl<'de> Deserialize<'de> for MutationV43
impl<'de> Deserialize<'de> for MutationV43
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 From<MutationV41> for MutationV43
impl From<MutationV41> for MutationV43
Source§fn from(from: MutationV41) -> Self
fn from(from: MutationV41) -> Self
Converts to this type from the input type.
Source§impl Ord for MutationV43
impl Ord for MutationV43
Source§fn cmp(&self, other: &MutationV43) -> Ordering
fn cmp(&self, other: &MutationV43) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more