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§
source§impl Clone for PairingOptions
impl Clone for PairingOptions
source§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 moresource§impl Debug for PairingOptions
impl Debug for PairingOptions
source§impl Decode<PairingOptions> for PairingOptions
impl Decode<PairingOptions> for PairingOptions
source§impl Default for PairingOptions
impl Default for PairingOptions
source§fn default() -> PairingOptions
fn default() -> PairingOptions
source§impl Encode<PairingOptions> for &PairingOptions
impl Encode<PairingOptions> for &PairingOptions
source§impl PartialEq for PairingOptions
impl PartialEq for PairingOptions
source§fn eq(&self, other: &PairingOptions) -> bool
fn eq(&self, other: &PairingOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for PairingOptions
impl TypeMarker for PairingOptions
§type Owned = PairingOptions
type Owned = PairingOptions
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§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.source§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