#[repr(u32)]pub enum PairingKeypress {
DigitEntered = 1,
DigitErased = 2,
PasskeyCleared = 3,
PasskeyEntered = 4,
}
Expand description
Used to convey information to the peer on progress typing a passkey. The various types of keypresses can be used to customize what is communicated to the user requesting a pairing.
Variants§
DigitEntered = 1
The user has entered a single digit.
DigitErased = 2
The user has erased a single digit.
PasskeyCleared = 3
The user has cleared the entire passkey.
PasskeyEntered = 4
The user has finished entering the passkey.
Implementations§
Source§impl PairingKeypress
impl PairingKeypress
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for PairingKeypress
impl Clone for PairingKeypress
Source§fn clone(&self) -> PairingKeypress
fn clone(&self) -> PairingKeypress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PairingKeypress
impl Debug for PairingKeypress
Source§impl<D: ResourceDialect> Decode<PairingKeypress, D> for PairingKeypress
impl<D: ResourceDialect> Decode<PairingKeypress, D> for PairingKeypress
Source§impl<D: ResourceDialect> Encode<PairingKeypress, D> for PairingKeypress
impl<D: ResourceDialect> Encode<PairingKeypress, D> for PairingKeypress
Source§impl Hash for PairingKeypress
impl Hash for PairingKeypress
Source§impl Ord for PairingKeypress
impl Ord for PairingKeypress
Source§fn cmp(&self, other: &PairingKeypress) -> Ordering
fn cmp(&self, other: &PairingKeypress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PairingKeypress
impl PartialEq for PairingKeypress
Source§impl PartialOrd for PairingKeypress
impl PartialOrd for PairingKeypress
Source§impl TypeMarker for PairingKeypress
impl TypeMarker for PairingKeypress
Source§type Owned = PairingKeypress
type Owned = PairingKeypress
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PairingKeypress
impl ValueTypeMarker for PairingKeypress
Source§type Borrowed<'a> = PairingKeypress
type Borrowed<'a> = PairingKeypress
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for PairingKeypress
impl Eq for PairingKeypress
impl StructuralPartialEq for PairingKeypress
Auto Trait Implementations§
impl Freeze for PairingKeypress
impl RefUnwindSafe for PairingKeypress
impl Send for PairingKeypress
impl Sync for PairingKeypress
impl Unpin for PairingKeypress
impl UnwindSafe for PairingKeypress
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)