#[non_exhaustive]pub enum GudEvent {
Reset,
Configured(bool),
Buffer(BufferInfo),
StateCheck,
StateCommit,
ConnectorForceDetect(u8),
DisplayEnable(bool),
ControllerEnable(bool),
}Expand description
Events delivered to the user task in host request order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reset
USB bus reset; drop any in-flight read state.
Configured(bool)
USB configuration set (true) or cleared (false).
Buffer(BufferInfo)
The rectangle to update. BufferInfo::transfer_size bytes of pixel data
follow on the bulk OUT endpoint. Use GudClass::read_packet or
GudClass::read_buffer to read.
StateCheck
A state passed SET_STATE_CHECK; inspect GudClass::checked_state.
StateCommit
The host committed a state; inspect GudClass::committed_state.
ConnectorForceDetect(u8)
Host-side userspace connector status check (connector index).
DisplayEnable(bool)
Display/output (DPMS) enabled or disabled.
ControllerEnable(bool)
Display controller enabled or disabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GudEvent
impl RefUnwindSafe for GudEvent
impl Send for GudEvent
impl Sync for GudEvent
impl Unpin for GudEvent
impl UnsafeUnpin for GudEvent
impl UnwindSafe for GudEvent
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