pub trait Device: Display {
Show 14 methods
fn new(
name: &str,
alias: &str,
peripheral: Option<Peripheral>,
write_char: Option<Characteristic>,
read_char: Option<Characteristic>,
write_char_uuid: Option<Uuid>
) -> Self;
fn alias(&self) -> &str;
fn name(&self) -> &str;
fn address(&self) -> Option<String>;
fn peripheral(&self) -> Option<&Peripheral>;
fn write_char_uuid(&self) -> &Uuid;
fn write_char(&self) -> Option<&Characteristic>;
fn read_char(&self) -> Option<&Characteristic>;
fn default_write_characteristic_uuid(&self) -> Uuid;
fn set_alias(&mut self, alias: &str);
fn set_name(&mut self, name: &str);
fn set_peripheral(&mut self, peripheral: Peripheral);
fn set_write_char(&mut self, characteristic: &Characteristic);
fn set_write_char_uuid(&mut self, char_uuid: Uuid);
}