pub struct DeviceStateReader { /* private fields */ }Expand description
Button reader that keeps state of the Stream Deck and returns events instead of full states
Implementations§
Source§impl DeviceStateReader
impl DeviceStateReader
Sourcepub fn read(
&self,
timeout: Option<Duration>,
) -> Result<Vec<DeviceStateUpdate>, StreamDeckError>
pub fn read( &self, timeout: Option<Duration>, ) -> Result<Vec<DeviceStateUpdate>, StreamDeckError>
Reads states and returns updates
Auto Trait Implementations§
impl !Freeze for DeviceStateReader
impl !RefUnwindSafe for DeviceStateReader
impl !Send for DeviceStateReader
impl !Sync for DeviceStateReader
impl Unpin for DeviceStateReader
impl !UnwindSafe for DeviceStateReader
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