#[repr(u32)]pub enum InputCapability {
    None = 1,
    Confirmation = 2,
    Keyboard = 3,
}Expand description
Input Capabilities for pairing exchanges. These should be set based on the ability of the local system to enter responses to pairing requests. See Volume 3, Part C, Table 5.3 for more information.
Variants§
None = 1
There is no user input method available for responding ‘yes’ or ‘no’ to a pairing request. Note: setting this setting will mean most pairings are considered unauthenticated and vulnerable to machine-in-the-middle attacks.
Confirmation = 2
The user can respond yes or no to a request.
Keyboard = 3
The user has a keyboard (or other UI) where they can type a numerical code and signal they have finished or cancel.
Implementations§
Source§impl InputCapability
 
impl InputCapability
pub fn from_primitive(prim: u32) -> Option<InputCapability>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for InputCapability
 
impl Clone for InputCapability
Source§fn clone(&self) -> InputCapability
 
fn clone(&self) -> InputCapability
Returns a duplicate 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 InputCapability
 
impl Debug for InputCapability
Source§impl<D> Decode<InputCapability, D> for InputCapabilitywhere
    D: ResourceDialect,
 
impl<D> Decode<InputCapability, D> for InputCapabilitywhere
    D: ResourceDialect,
Source§fn new_empty() -> InputCapability
 
fn new_empty() -> InputCapability
Creates a valid instance of 
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<InputCapability, D> for InputCapabilitywhere
    D: ResourceDialect,
 
impl<D> Encode<InputCapability, D> for InputCapabilitywhere
    D: ResourceDialect,
Source§impl Hash for InputCapability
 
impl Hash for InputCapability
Source§impl Ord for InputCapability
 
impl Ord for InputCapability
Source§fn cmp(&self, other: &InputCapability) -> Ordering
 
fn cmp(&self, other: &InputCapability) -> 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 InputCapability
 
impl PartialEq for InputCapability
Source§impl PartialOrd for InputCapability
 
impl PartialOrd for InputCapability
Source§impl TypeMarker for InputCapability
 
impl TypeMarker for InputCapability
Source§type Owned = InputCapability
 
type Owned = InputCapability
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 InputCapability
 
impl ValueTypeMarker for InputCapability
Source§type Borrowed<'a> = InputCapability
 
type Borrowed<'a> = InputCapability
The Rust type to use for encoding. This is a particular 
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<InputCapability as TypeMarker>::Owned,
) -> <InputCapability as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<InputCapability as TypeMarker>::Owned, ) -> <InputCapability as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from 
&Self::Owned to Self::Borrowed.impl Copy for InputCapability
impl Eq for InputCapability
impl StructuralPartialEq for InputCapability
Auto Trait Implementations§
impl Freeze for InputCapability
impl RefUnwindSafe for InputCapability
impl Send for InputCapability
impl Sync for InputCapability
impl Unpin for InputCapability
impl UnwindSafe for InputCapability
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