#[repr(u8)]pub enum Otgmode {
HNPSRP = 0,
SRPOTG = 1,
NHNPNSRP = 2,
SRPCAPD = 3,
NONOTGD = 4,
SRPCAPH = 5,
NONOTGH = 6,
_RESERVED_7 = 7,
}Variants§
HNPSRP = 0
HNP- and SRP-Capable OTG (Host and Device)
SRPOTG = 1
SRP-Capable OTG (Host and Device)
NHNPNSRP = 2
Non-HNP and Non-SRP Capable OTG (Host and Device)
SRPCAPD = 3
SRP-Capable Device
NONOTGD = 4
Non-OTG Device
SRPCAPH = 5
SRP-Capable Host
NONOTGH = 6
Non-OTG Host
_RESERVED_7 = 7
Implementations§
Trait Implementations§
Source§impl Ord for Otgmode
impl Ord for Otgmode
Source§impl PartialOrd for Otgmode
impl PartialOrd for Otgmode
impl Copy for Otgmode
impl Eq for Otgmode
impl StructuralPartialEq for Otgmode
Auto Trait Implementations§
impl Freeze for Otgmode
impl RefUnwindSafe for Otgmode
impl Send for Otgmode
impl Sync for Otgmode
impl Unpin for Otgmode
impl UnwindSafe for Otgmode
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)