#[repr(u8)]pub enum ChallengeKind {
YawLeft = 1,
YawRight = 2,
Smile = 3,
BlinkTwice = 4,
OpenMouth = 5,
PitchUp = 6,
PitchDown = 7,
}Variants§
YawLeft = 1
YawRight = 2
Smile = 3
BlinkTwice = 4
OpenMouth = 5
Open mouth (landmark mouth-gap ratio).
PitchUp = 6
Look slightly up (pitch).
PitchDown = 7
Look slightly down (pitch).
Implementations§
Source§impl ChallengeKind
impl ChallengeKind
pub const ALL: [ChallengeKind; 7]
Sourcepub const ROTATION: [ChallengeKind; 4]
pub const ROTATION: [ChallengeKind; 4]
Challenges that exercise non-rigid Z under rigid rotation (prefer for PAD strength).
Sourcepub const fn is_rotation(self) -> bool
pub const fn is_rotation(self) -> bool
true when rotation.
Sourcepub fn from_seed_prefer_rotation(seed: u64) -> Self
pub fn from_seed_prefer_rotation(seed: u64) -> Self
Prefer rotation challenges for stronger 3D PAD (still deterministic).
Trait Implementations§
Source§impl Clone for ChallengeKind
impl Clone for ChallengeKind
impl Copy for ChallengeKind
Source§impl Debug for ChallengeKind
impl Debug for ChallengeKind
impl Eq for ChallengeKind
Source§impl PartialEq for ChallengeKind
impl PartialEq for ChallengeKind
impl StructuralPartialEq for ChallengeKind
Auto Trait Implementations§
impl Freeze for ChallengeKind
impl RefUnwindSafe for ChallengeKind
impl Send for ChallengeKind
impl Sync for ChallengeKind
impl Unpin for ChallengeKind
impl UnsafeUnpin for ChallengeKind
impl UnwindSafe for ChallengeKind
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Checks if this value is equivalent to the given key. Read more
§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.§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more