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