pub enum HookWhen {
InitIdle,
AfterSetup(EndpointAddress),
DataOut(EndpointAddress),
DataIn(EndpointAddress),
ManualPoll,
}
Expand description
Specifies why Device::hook()
was called.
Variants§
InitIdle
After poll()
from with_usb()
after initialization
and before device setup.
AfterSetup(EndpointAddress)
After poll()
once Setup packet is sent during the transaction.
DataOut(EndpointAddress)
After poll()
once some portion of data is sent to
the device.
DataIn(EndpointAddress)
After poll()
once some portion of data is received from
the device.
ManualPoll
After a manual poll()
from with_usb()
’s case
.
Trait Implementations§
impl Copy for HookWhen
impl StructuralPartialEq for HookWhen
Auto Trait Implementations§
impl Freeze for HookWhen
impl RefUnwindSafe for HookWhen
impl Send for HookWhen
impl Sync for HookWhen
impl Unpin for HookWhen
impl UnwindSafe for HookWhen
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