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<D: ResourceDialect> Decode<PairingOptions, D> for PairingOptions
impl<D: ResourceDialect> Decode<PairingOptions, D> for PairingOptions
Source§impl Default for PairingOptions
impl Default for PairingOptions
Source§fn default() -> PairingOptions
fn default() -> PairingOptions
Source§impl<D: ResourceDialect> Encode<PairingOptions, D> for &PairingOptions
impl<D: ResourceDialect> Encode<PairingOptions, D> for &PairingOptions
Source§impl PartialEq for PairingOptions
impl PartialEq for PairingOptions
Source§impl TypeMarker for PairingOptions
impl TypeMarker for PairingOptions
Source§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
Source§type Borrowed<'a> = &'a PairingOptions
type Borrowed<'a> = &'a PairingOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more