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
)