[−][src]Enum toio::proto::Message
Message read/written from/to characteristics.
Variants
Id(Id)
Message for id reader.
Motion(Motion)
Message for motion sensor.
Button(Button)
Message for button.
Battery(u8)
Message for battery.
Motor(Motor)
Message for motor.
Light(Light)
Message for light.
Sound(Sound)
Message for sound device.
Config(Config)
Message for configuration.
Implementations
impl Message
[src]
impl Message
[src]
pub fn new_motion(f0: Motion) -> Self
[src]
Constructs a new Message::Motion
.
impl Message
[src]
pub fn new_button(f0: Button) -> Self
[src]
Constructs a new Message::Button
.
impl Message
[src]
pub fn new_battery(f0: u8) -> Self
[src]
Constructs a new Message::Battery
.
impl Message
[src]
impl Message
[src]
impl Message
[src]
impl Message
[src]
pub fn new_config(f0: Config) -> Self
[src]
Constructs a new Message::Config
.
Trait Implementations
impl Clone for Message
[src]
impl Debug for Message
[src]
impl Eq for Message
[src]
impl PartialEq<Message> for Message
[src]
impl StructuralEq for Message
[src]
impl StructuralPartialEq for Message
[src]
impl<'_> TryFrom<(Uuid, &'_ [u8])> for Message
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from((uuid, buf): (Uuid, &[u8])) -> Result<Self>
[src]
impl TryFrom<(Uuid, Vec<u8>)> for Message
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from((uuid, buf): (Uuid, Vec<u8>)) -> Result<Self>
[src]
impl TryFrom<Message> for (Uuid, Vec<u8>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,