#[non_exhaustive]
pub enum AuthStateSummary {
StorageLocked,
InteractionLocked,
Unlocked,
RecentlyAuthenticated,
// some variants omitted
}
Expand description
A high level assessment of the degree to which the account owner is authenticated and consequently which resources are available for the account. The detailed definitions of these states and the transistions between them depend on product-specific policy. Some states may not apply for some products.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StorageLocked
All encrypted storage for the account is locked. No account resources will be available until after authentication using a storage unlock authentication mechanism.
InteractionLocked
Some encrypted storage for the account is unlocked but local interaction with the account will not allowed until after authentication. Some account resources may be available in this state.
Unlocked
All encrypted storage for the account is unlocked. Local interaction is allowed.
RecentlyAuthenticated
All encrypted storage for the account is unlocked. Local interaction is allowed, and the account owner has recently been authenticated.
Implementations§
source§impl AuthStateSummary
impl AuthStateSummary
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
source§impl Clone for AuthStateSummary
impl Clone for AuthStateSummary
source§fn clone(&self) -> AuthStateSummary
fn clone(&self) -> AuthStateSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthStateSummary
impl Debug for AuthStateSummary
source§impl Decode<AuthStateSummary> for AuthStateSummary
impl Decode<AuthStateSummary> for AuthStateSummary
source§impl Encode<AuthStateSummary> for AuthStateSummary
impl Encode<AuthStateSummary> for AuthStateSummary
source§impl Hash for AuthStateSummary
impl Hash for AuthStateSummary
source§impl Ord for AuthStateSummary
impl Ord for AuthStateSummary
source§fn cmp(&self, other: &AuthStateSummary) -> Ordering
fn cmp(&self, other: &AuthStateSummary) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<AuthStateSummary> for AuthStateSummary
impl PartialEq<AuthStateSummary> for AuthStateSummary
source§fn eq(&self, other: &AuthStateSummary) -> bool
fn eq(&self, other: &AuthStateSummary) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AuthStateSummary> for AuthStateSummary
impl PartialOrd<AuthStateSummary> for AuthStateSummary
source§fn partial_cmp(&self, other: &AuthStateSummary) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthStateSummary) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for AuthStateSummary
impl TypeMarker for AuthStateSummary
§type Owned = AuthStateSummary
type Owned = AuthStateSummary
source§fn inline_align(context: Context) -> usize
fn inline_align(context: Context) -> usize
source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for AuthStateSummary
impl ValueTypeMarker for AuthStateSummary
§type Borrowed<'a> = <AuthStateSummary as TypeMarker>::Owned
type Borrowed<'a> = <AuthStateSummary as TypeMarker>::Owned
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more