pub struct LedDevice {
pub name: String,
/* private fields */
}Fields
name: StringTrait Implementations
sourceimpl Device for LedDevice
impl Device for LedDevice
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_uuid(&mut self, char_uuid: Uuid)
fn set_write_char(&mut self, characteristic: &Characteristic)
Auto Trait Implementations
impl !RefUnwindSafe for LedDevice
impl Send for LedDevice
impl Sync for LedDevice
impl Unpin for LedDevice
impl !UnwindSafe for LedDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more