pub enum RepositoryStorageType {
Ephemeral,
Persistent,
}
Expand description
Convenience wrapper for the FIDL RepositoryStorageType.
Variants§
Ephemeral
Store the repository in-memory. This metadata will be lost if the process or device is restarted.
Persistent
Store the metadata to persitent mutable storage. This metadata will still be available if the process or device is restarted.
Trait Implementations§
source§impl Clone for RepositoryStorageType
impl Clone for RepositoryStorageType
source§fn clone(&self) -> RepositoryStorageType
fn clone(&self) -> RepositoryStorageType
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 RepositoryStorageType
impl Debug for RepositoryStorageType
source§impl<'de> Deserialize<'de> for RepositoryStorageType
impl<'de> Deserialize<'de> for RepositoryStorageType
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<RepositoryStorageType> for RepositoryStorageType
impl From<RepositoryStorageType> for RepositoryStorageType
source§fn from(storage_type: RepositoryStorageType) -> Self
fn from(storage_type: RepositoryStorageType) -> Self
Converts to this type from the input type.
source§impl From<RepositoryStorageType> for RepositoryStorageType
impl From<RepositoryStorageType> for RepositoryStorageType
source§fn from(other: RepositoryStorageType) -> Self
fn from(other: RepositoryStorageType) -> Self
Converts to this type from the input type.
source§impl Hash for RepositoryStorageType
impl Hash for RepositoryStorageType
source§impl Ord for RepositoryStorageType
impl Ord for RepositoryStorageType
source§fn cmp(&self, other: &RepositoryStorageType) -> Ordering
fn cmp(&self, other: &RepositoryStorageType) -> 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
source§impl PartialEq for RepositoryStorageType
impl PartialEq for RepositoryStorageType
source§fn eq(&self, other: &RepositoryStorageType) -> bool
fn eq(&self, other: &RepositoryStorageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RepositoryStorageType
impl PartialOrd for RepositoryStorageType
source§fn partial_cmp(&self, other: &RepositoryStorageType) -> Option<Ordering>
fn partial_cmp(&self, other: &RepositoryStorageType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RepositoryStorageType
impl Serialize for RepositoryStorageType
impl Eq for RepositoryStorageType
impl StructuralPartialEq for RepositoryStorageType
Auto Trait Implementations§
impl Freeze for RepositoryStorageType
impl RefUnwindSafe for RepositoryStorageType
impl Send for RepositoryStorageType
impl Sync for RepositoryStorageType
impl Unpin for RepositoryStorageType
impl UnwindSafe for RepositoryStorageType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more