pub struct AdapterConfig {
pub transport: String,
pub name: String,
pub appearance: u16,
pub io_capability: IoCapability,
pub passkey: Option<u32>,
pub bonding: bool,
pub mitm: bool,
pub secure_connections_only: bool,
pub random_address: bool,
}Expand description
The controller.
Fields§
§transport: Stringhci0, serial:/dev/ttyAMA0:115200, or tcp:host:port.
name: StringThe GAP device name.
appearance: u16The GAP appearance.
io_capability: IoCapabilityInput and output capabilities for pairing.
passkey: Option<u32>A fixed passkey to show and type when pairing needs one (six digits).
bonding: boolBond when pairing.
mitm: boolRequire MITM protection.
secure_connections_only: boolRefuse legacy pairing.
random_address: boolUse a static random address even when the controller has a public one.
Trait Implementations§
Source§impl Clone for AdapterConfig
impl Clone for AdapterConfig
Source§impl Debug for AdapterConfig
impl Debug for AdapterConfig
Source§impl<'de> Deserialize<'de> for AdapterConfig
impl<'de> Deserialize<'de> for AdapterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AdapterConfig
impl RefUnwindSafe for AdapterConfig
impl Send for AdapterConfig
impl Sync for AdapterConfig
impl Unpin for AdapterConfig
impl UnsafeUnpin for AdapterConfig
impl UnwindSafe for AdapterConfig
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