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        #[unsafe(method(isSet))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn isSet(&self) -> bool;
34    );
35}
36
37/// Methods declared on superclass `LAEnvironmentMechanism`.
38#[cfg(feature = "LAEnvironmentMechanism")]
39impl LAEnvironmentMechanismUserPassword {
40    extern_methods!(
41        /// Clients should only consume environment mechanisms..
42        #[unsafe(method(new))]
43        #[unsafe(method_family = new)]
44        pub unsafe fn new() -> Retained<Self>;
45
46        /// The Clients should only consume environment mechanisms..
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50    );
51}