Enum stm32_metapac::usb::vals::Stat
#[repr(u8)]pub enum Stat {
DISABLED = 0,
STALL = 1,
NAK = 2,
VALID = 3,
}
Variants§
DISABLED = 0
all requests addressed to this endpoint are ignored
STALL = 1
the endpoint is stalled and all requests result in a STALL handshake
NAK = 2
the endpoint is naked and all requests result in a NAK handshake
VALID = 3
this endpoint is enabled, requests are ACKed
Implementations§
Trait Implementations§
§impl Ord for Stat
impl Ord for Stat
§impl PartialOrd for Stat
impl PartialOrd for Stat
§fn partial_cmp(&self, other: &Stat) -> Option<Ordering>
fn partial_cmp(&self, other: &Stat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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