Enum rockusb::protocol::ResetOpcode
source · #[repr(u8)]pub enum ResetOpcode {
Reset,
MSC,
PowerOff,
Maskrom,
Disconnect,
}
Variants§
Reset
Reset
MSC
Reset to USB mass-storage device class
PowerOff
Powers the SOC off
Maskrom
Reset to maskrom mode
Disconnect
Disconnect from USB
Trait Implementations§
source§impl Clone for ResetOpcode
impl Clone for ResetOpcode
source§fn clone(&self) -> ResetOpcode
fn clone(&self) -> ResetOpcode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResetOpcode
impl Debug for ResetOpcode
source§impl From<ResetOpcode> for u8
impl From<ResetOpcode> for u8
source§fn from(enum_value: ResetOpcode) -> Self
fn from(enum_value: ResetOpcode) -> Self
Converts to this type from the input type.
source§impl PartialEq<ResetOpcode> for ResetOpcode
impl PartialEq<ResetOpcode> for ResetOpcode
source§fn eq(&self, other: &ResetOpcode) -> bool
fn eq(&self, other: &ResetOpcode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for ResetOpcode
impl TryFrom<u8> for ResetOpcode
§type Error = TryFromPrimitiveError<ResetOpcode>
type Error = TryFromPrimitiveError<ResetOpcode>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for ResetOpcode
impl TryFromPrimitive for ResetOpcode
impl Copy for ResetOpcode
impl Eq for ResetOpcode
impl StructuralEq for ResetOpcode
impl StructuralPartialEq for ResetOpcode
Auto Trait Implementations§
impl RefUnwindSafe for ResetOpcode
impl Send for ResetOpcode
impl Sync for ResetOpcode
impl Unpin for ResetOpcode
impl UnwindSafe for ResetOpcode
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