pub struct Thing { /* private fields */ }
Expand description
The “thing” in the LCI system.
Implementations§
Source§impl Thing
impl Thing
pub fn label(&self) -> &String
pub fn UID(&self) -> &String
pub fn configuration(&self) -> &Configuration
Source§impl Thing
impl Thing
Sourcepub fn get_type(&self) -> Option<DeviceType>
pub fn get_type(&self) -> Option<DeviceType>
Returns the type of device this “thing” is configured as.
Sourcepub async fn online(&self) -> Result<OnlineState, OnlineStateConversionError>
pub async fn online(&self) -> Result<OnlineState, OnlineStateConversionError>
Returns the device’s online state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thing
impl<'de> Deserialize<'de> for Thing
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 Thing
impl RefUnwindSafe for Thing
impl Send for Thing
impl Sync for Thing
impl Unpin for Thing
impl UnwindSafe for Thing
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