pub struct LAEnvironmentState { /* private fields */ }Expand description
Snapshot wrapper around Apple’s LAEnvironmentState.
Implementations§
Source§impl LAEnvironmentState
impl LAEnvironmentState
Sourcepub fn biometry(&self) -> Result<Option<LAEnvironmentMechanismBiometry>>
pub fn biometry(&self) -> Result<Option<LAEnvironmentMechanismBiometry>>
Information about the device’s biometric mechanism, if supported.
§Errors
Returns an error if the Swift bridge rejects the request.
Sourcepub fn user_password(
&self,
) -> Result<Option<LAEnvironmentMechanismUserPassword>>
pub fn user_password( &self, ) -> Result<Option<LAEnvironmentMechanismUserPassword>>
Information about the local user password or passcode mechanism, if supported.
§Errors
Returns an error if the Swift bridge rejects the request.
Sourcepub fn companions(&self) -> Result<Vec<LAEnvironmentMechanismCompanion>>
pub fn companions(&self) -> Result<Vec<LAEnvironmentMechanismCompanion>>
Companion authentication mechanisms currently paired with this device.
§Errors
Returns an error if the Swift bridge rejects the request.
Sourcepub fn all_mechanisms(&self) -> Result<Vec<LAEnvironmentMechanism>>
pub fn all_mechanisms(&self) -> Result<Vec<LAEnvironmentMechanism>>
Information about every currently known authentication mechanism.
§Errors
Returns an error if the Swift bridge rejects the request.
Trait Implementations§
Auto Trait Implementations§
impl !Send for LAEnvironmentState
impl !Sync for LAEnvironmentState
impl Freeze for LAEnvironmentState
impl RefUnwindSafe for LAEnvironmentState
impl Unpin for LAEnvironmentState
impl UnsafeUnpin for LAEnvironmentState
impl UnwindSafe for LAEnvironmentState
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