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ยง
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementationsยง
impl Freeze for Event
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)