Type Alias StoreInfo

Source
pub type StoreInfo = StoreInfoV40;
Expand description

StoreInfo stores information about the object store. This is stored within the parent object store, and is used, for example, to get the persistent layer objects.

Aliased Type§

struct StoreInfo {
    pub layers: Vec<u64>,
    pub encrypted_mutations_object_id: u64,
    /* private fields */
}

Fields§

§layers: Vec<u64>

Object ids for layers. TODO(https://fxbug.dev/42178036): need a layer of indirection here so we can support snapshots.

§encrypted_mutations_object_id: u64

If we have to flush the store whilst we do not have the key, we need to write the encrypted mutations to an object. This is the object ID of that file if it exists.

Implementations§

Source§

impl StoreInfo

Source

pub fn parent_objects(&self) -> Vec<u64>

Returns the parent objects for this store.

Trait Implementations§

Source§

impl VersionedLatest for StoreInfo

Source§

fn deserialize_from_version<R>(reader: &mut R, version: Version) -> Result<Self>
where R: Read, Self: Sized,

Deserializes from a given version format and upgrades to the latest version.
Source§

fn deserialize_with_version<R>(reader: &mut R) -> Result<(Self, Version)>
where R: Read, Self: Sized,

Like deserialize_from_version but reads Version from reader first, then uses it to deserialize self.
Source§

fn serialize_with_version<W>(&self, writer: &mut W) -> Result<()>
where W: Write, Self: Sized,

Like serialize_into but serialized Version first, then self.