objc2_local_authentication/generated/
LAEnvironmentMechanismUserPassword.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/localauthentication/laenvironmentmechanismuserpassword?language=objc)
10    #[unsafe(super(LAEnvironmentMechanism, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "LAEnvironmentMechanism")]
13    pub struct LAEnvironmentMechanismUserPassword;
14);
15
16#[cfg(feature = "LAEnvironmentMechanism")]
17unsafe impl Send for LAEnvironmentMechanismUserPassword {}
18
19#[cfg(feature = "LAEnvironmentMechanism")]
20unsafe impl Sync for LAEnvironmentMechanismUserPassword {}
21
22#[cfg(feature = "LAEnvironmentMechanism")]
23extern_conformance!(
24    unsafe impl NSObjectProtocol for LAEnvironmentMechanismUserPassword {}
25);
26
27#[cfg(feature = "LAEnvironmentMechanism")]
28impl LAEnvironmentMechanismUserPassword {
29    extern_methods!(
30        /// Whether the local user password or passcode is set on this device.
31        ///
32        /// This property is not atomic.
33        ///
34        /// # Safety
35        ///
36        /// This might not be thread-safe.
37        #[unsafe(method(isSet))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn isSet(&self) -> bool;
40    );
41}
42
43/// Methods declared on superclass `LAEnvironmentMechanism`.
44#[cfg(feature = "LAEnvironmentMechanism")]
45impl LAEnvironmentMechanismUserPassword {
46    extern_methods!(
47        /// Clients should only consume environment mechanisms..
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51
52        /// The Clients should only consume environment mechanisms..
53        #[unsafe(method(init))]
54        #[unsafe(method_family = init)]
55        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56    );
57}