Enum nrf52840_pac::usbd::bmrequesttype::RECIPIENTR
source · pub enum RECIPIENTR {
DEVICE,
INTERFACE,
ENDPOINT,
OTHER,
_Reserved(u8),
}
Expand description
Possible values of the field RECIPIENT
Variants
DEVICE
Device
INTERFACE
Interface
ENDPOINT
Endpoint
OTHER
Other
_Reserved(u8)
Reserved
Implementations
sourceimpl RECIPIENTR
impl RECIPIENTR
sourcepub fn is_interface(&self) -> bool
pub fn is_interface(&self) -> bool
Checks if the value of the field is INTERFACE
sourcepub fn is_endpoint(&self) -> bool
pub fn is_endpoint(&self) -> bool
Checks if the value of the field is ENDPOINT
Trait Implementations
sourceimpl Clone for RECIPIENTR
impl Clone for RECIPIENTR
sourcefn clone(&self) -> RECIPIENTR
fn clone(&self) -> RECIPIENTR
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RECIPIENTR
impl Debug for RECIPIENTR
sourceimpl PartialEq<RECIPIENTR> for RECIPIENTR
impl PartialEq<RECIPIENTR> for RECIPIENTR
sourcefn eq(&self, other: &RECIPIENTR) -> bool
fn eq(&self, other: &RECIPIENTR) -> bool
impl Copy for RECIPIENTR
impl StructuralPartialEq for RECIPIENTR
Auto Trait Implementations
impl RefUnwindSafe for RECIPIENTR
impl Send for RECIPIENTR
impl Sync for RECIPIENTR
impl Unpin for RECIPIENTR
impl UnwindSafe for RECIPIENTR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more