pub struct LightLevel<'a> { /* private fields */ }Expand description
A light level detection device.
Implementations§
Source§impl<'a> LightLevel<'a>
impl<'a> LightLevel<'a>
pub fn new(bridge: &'a Bridge, data: LightLevelData) -> Self
pub fn data(&self) -> &LightLevelData
pub fn id(&self) -> &str
pub fn rid(&self) -> ResourceIdentifier
pub async fn send( &self, commands: &[BasicCommand], ) -> Result<Vec<ResourceIdentifier>, HueAPIError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LightLevel<'a>
impl<'a> !UnwindSafe for LightLevel<'a>
impl<'a> Freeze for LightLevel<'a>
impl<'a> Send for LightLevel<'a>
impl<'a> Sync for LightLevel<'a>
impl<'a> Unpin for LightLevel<'a>
impl<'a> UnsafeUnpin for LightLevel<'a>
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