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§
Trait Implementations§
Source§impl VersionedLatest for StoreInfo
impl VersionedLatest for StoreInfo
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 StoreInfoV40
impl Clone for StoreInfoV40
Source§fn clone(&self) -> StoreInfoV40
fn clone(&self) -> StoreInfoV40
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 StoreInfoV40
impl Debug for StoreInfoV40
Source§impl Default for StoreInfoV40
impl Default for StoreInfoV40
Source§fn default() -> StoreInfoV40
fn default() -> StoreInfoV40
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoreInfoV40
impl<'de> Deserialize<'de> for StoreInfoV40
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<StoreInfoV36> for StoreInfoV40
impl From<StoreInfoV36> for StoreInfoV40
Source§fn from(from: StoreInfoV36) -> Self
fn from(from: StoreInfoV36) -> Self
Converts to this type from the input type.