pub enum PersistenceScope {
Session,
HostProfile,
DeviceSetting,
OnboardProfileSlot,
}Expand description
Where a setting is expected to persist.
设置预期保存的位置与持久性。
Variants§
Trait Implementations§
Source§impl Clone for PersistenceScope
impl Clone for PersistenceScope
Source§fn clone(&self) -> PersistenceScope
fn clone(&self) -> PersistenceScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PersistenceScope
Source§impl Debug for PersistenceScope
impl Debug for PersistenceScope
Source§impl<'de> Deserialize<'de> for PersistenceScope
impl<'de> Deserialize<'de> for PersistenceScope
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
impl Eq for PersistenceScope
Source§impl PartialEq for PersistenceScope
impl PartialEq for PersistenceScope
Source§fn eq(&self, other: &PersistenceScope) -> bool
fn eq(&self, other: &PersistenceScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PersistenceScope
impl Serialize for PersistenceScope
impl StructuralPartialEq for PersistenceScope
Auto Trait Implementations§
impl Freeze for PersistenceScope
impl RefUnwindSafe for PersistenceScope
impl Send for PersistenceScope
impl Sync for PersistenceScope
impl Unpin for PersistenceScope
impl UnsafeUnpin for PersistenceScope
impl UnwindSafe for PersistenceScope
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