#[non_exhaustive]pub enum PinCheck {
Holds,
Absent,
Refused(String),
}Expand description
What a source found for one account.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Holds
The account holds one of the pins.
Absent
The source was read and the account holds none of them.
Refused(String)
The source cannot be trusted for this account (a file with the wrong permissions, a home that is not known): counted as no pins, and the reason is reported. The reason never holds a pin.
Trait Implementations§
impl Eq for PinCheck
impl StructuralPartialEq for PinCheck
Auto Trait Implementations§
impl Freeze for PinCheck
impl RefUnwindSafe for PinCheck
impl Send for PinCheck
impl Sync for PinCheck
impl Unpin for PinCheck
impl UnsafeUnpin for PinCheck
impl UnwindSafe for PinCheck
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.