pub enum CtrlState {
Init,
ReadIn,
ReadStatus,
WriteOut,
}
Expand description
State of the control endpoint (endpoint 0).
Variants§
Init
Control endpoint is idle, and waiting for a command from the host.
ReadIn
Control endpoint has started an IN transfer.
ReadStatus
Control endpoint has moved to the status phase.
WriteOut
Control endpoint is handling a control write (OUT) transfer.
Trait Implementations§
impl Copy for CtrlState
impl StructuralPartialEq for CtrlState
Auto Trait Implementations§
impl Freeze for CtrlState
impl RefUnwindSafe for CtrlState
impl Send for CtrlState
impl Sync for CtrlState
impl Unpin for CtrlState
impl UnwindSafe for CtrlState
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