pub struct Lamp(/* private fields */);
Implementations§
§impl Lamp
impl Lamp
pub fn Close(&self) -> Result<()>
pub fn DeviceId(&self) -> Result<HSTRING>
pub fn IsEnabled(&self) -> Result<bool>
pub fn SetIsEnabled(&self, value: bool) -> Result<()>
pub fn BrightnessLevel(&self) -> Result<f32>
pub fn SetBrightnessLevel(&self, value: f32) -> Result<()>
pub fn IsColorSettable(&self) -> Result<bool>
pub fn Color(&self) -> Result<Color>
pub fn SetColor(&self, value: Color) -> Result<()>
pub fn AvailabilityChanged<P0>( &self, handler: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveAvailabilityChanged( &self, token: EventRegistrationToken ) -> Result<()>
pub fn GetDeviceSelector() -> Result<HSTRING>
pub fn FromIdAsync(deviceid: &HSTRING) -> Result<IAsyncOperation<Lamp>>
pub fn GetDefaultAsync() -> Result<IAsyncOperation<Lamp>>
Trait Implementations§
§impl From<&Lamp> for &IInspectable
impl From<&Lamp> for &IInspectable
§impl From<Lamp> for IInspectable
impl From<Lamp> for IInspectable
§impl Interface for Lamp
impl Interface for Lamp
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for Lamp
impl Send for Lamp
impl StructuralPartialEq for Lamp
impl Sync for Lamp
Auto Trait Implementations§
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