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.
Source§

impl Clone for StoreInfoV40

Source§

fn clone(&self) -> StoreInfoV40

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 StoreInfoV40

Source§

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

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

impl Default for StoreInfoV40

Source§

fn default() -> StoreInfoV40

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for StoreInfoV40

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 From<StoreInfoV36> for StoreInfoV40

Source§

fn from(from: StoreInfoV36) -> Self

Converts to this type from the input type.
Source§

impl Serialize for StoreInfoV40

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 StoreInfoV40

Source§

impl Versioned for StoreInfoV40

Source§

fn max_serialized_size() -> u64

Source§

fn deserialize_from<R>(reader: &mut R, _version: Version) -> Result<Self>
where R: Read + ?Sized, for<'de> Self: Deserialize<'de>,

Source§

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