Enum embassy_usb_driver::Event
source · pub enum Event {
Reset,
Suspend,
Resume,
PowerDetected,
PowerRemoved,
}
Expand description
Event returned by Bus::poll
.
Variants§
Reset
The USB reset condition has been detected.
Suspend
A USB suspend request has been detected or, in the case of self-powered devices, the device has been disconnected from the USB bus.
Resume
A USB resume request has been detected after being suspended or, in the case of self-powered devices, the device has been connected to the USB bus.
PowerDetected
The USB power has been detected.
PowerRemoved
The USB power has been removed. Not supported by all devices.
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
impl Copy for Event
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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