Struct kdri::KettlerDevice
[−]
[src]
pub struct KettlerDevice { pub name: String, pub addr: BtAddr, }
Fields
name: String
addr: BtAddr
Methods
impl KettlerDevice
[src]
fn new(name: String, addr: BtAddr) -> KettlerDevice
fn get_name(&self) -> String
fn get_addr(&self) -> BtAddr
fn connect(&self) -> Result<KettlerConnection, String>
Trait Implementations
impl<'a> From<&'a BtDevice> for KettlerDevice
[src]
fn from(device: &BtDevice) -> KettlerDevice
Performs the conversion.