Struct PairingOptions
pub struct PairingOptions {
pub le_security_level: Option<PairingSecurityLevel>,
pub bondable_mode: Option<BondableMode>,
pub transport: Option<TechnologyType>,
/* private fields */
}
Expand description
Parameters that give a caller more fine-grained control over the pairing process. All of the fields of this table are optional and pairing can still succeed if none of them are set.
Fields§
§le_security_level: Option<PairingSecurityLevel>
Only relevant for LE. If present, determines the Security Manager security level to pair with. If not present, interpreted as PairingSecurityLevel.AUTHENTICATED.
bondable_mode: Option<BondableMode>
If transport is LOW_ENERGY or DUAL_MODE, whether the device should form a bond or not during pairing. If not present, interpreted as bondable mode.
If transport is CLASSIC, this option must be absent or otherwise the value BONDABLE. NON_BONDABLE mode is not currently supported for the CLASSIC transport
transport: Option<TechnologyType>
If transport is LOW_ENERGY, indicate a desire to pair over the LE transport. If transport is CLASSIC, indicate a desire to pair over the Br/Edr transport. If transport is DUAL_MODE, indicate a desire to pair over both transports. If not present, interpreted as TechnologyType.DUAL_MODE
Trait Implementations§
§impl Clone for PairingOptions
impl Clone for PairingOptions
§fn clone(&self) -> PairingOptions
fn clone(&self) -> PairingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PairingOptions
impl Debug for PairingOptions
§impl<D> Decode<PairingOptions, D> for PairingOptionswhere
D: ResourceDialect,
impl<D> Decode<PairingOptions, D> for PairingOptionswhere
D: ResourceDialect,
§fn new_empty() -> PairingOptions
fn new_empty() -> PairingOptions
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for PairingOptions
impl Default for PairingOptions
§fn default() -> PairingOptions
fn default() -> PairingOptions
§impl<D> Encode<PairingOptions, D> for &PairingOptionswhere
D: ResourceDialect,
impl<D> Encode<PairingOptions, D> for &PairingOptionswhere
D: ResourceDialect,
§impl PartialEq for PairingOptions
impl PartialEq for PairingOptions
§impl TypeMarker for PairingOptions
impl TypeMarker for PairingOptions
§type Owned = PairingOptions
type Owned = PairingOptions
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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.§impl ValueTypeMarker for PairingOptions
impl ValueTypeMarker for PairingOptions
§type Borrowed<'a> = &'a PairingOptions
type Borrowed<'a> = &'a PairingOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<PairingOptions as TypeMarker>::Owned,
) -> <PairingOptions as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PairingOptions as TypeMarker>::Owned, ) -> <PairingOptions as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.