Enum esp_idf_hal::can::Alert
source · #[repr(u32)]pub enum Alert {
Show 18 variants
TransmitIdle = 1,
Success = 2,
Received = 3,
BelowErrorWarning = 4,
ActiveError = 5,
RecoveryInProgress = 6,
BusRecovered = 7,
ArbLost = 8,
AboveErrorWarning = 9,
BusError = 10,
TransmitFailed = 11,
ReceiveQueueFull = 12,
ErrorPass = 13,
BusOffline = 14,
ReceiveFifoOverflow = 15,
TransmitRetried = 16,
PeripheralReset = 17,
AlertAndLog = 18,
}
Variants§
TransmitIdle = 1
Success = 2
Received = 3
BelowErrorWarning = 4
ActiveError = 5
RecoveryInProgress = 6
BusRecovered = 7
ArbLost = 8
AboveErrorWarning = 9
BusError = 10
TransmitFailed = 11
ReceiveQueueFull = 12
ErrorPass = 13
BusOffline = 14
ReceiveFifoOverflow = 15
TransmitRetried = 16
PeripheralReset = 17
AlertAndLog = 18
Trait Implementations§
source§impl EnumSetTypePrivate for Alert
impl EnumSetTypePrivate for Alert
source§const ALL_BITS: Self::Repr = {transmute(0x0007fffe): <can::Alert as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x0007fffe): <can::Alert as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
source§const VARIANT_COUNT: u32 = 18u32
const VARIANT_COUNT: u32 = 18u32
The number of variants in the bitset.
source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
source§impl PartialEq<EnumSet<Alert>> for Alert
impl PartialEq<EnumSet<Alert>> for Alert
source§impl TryFrom<u32> for Alert
impl TryFrom<u32> for Alert
§type Error = TryFromPrimitiveError<Alert>
type Error = TryFromPrimitiveError<Alert>
The type returned in the event of a conversion error.
source§fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
source§impl TryFromPrimitive for Alert
impl TryFromPrimitive for Alert
type Primitive = u32
type Error = TryFromPrimitiveError<Alert>
const NAME: &'static str = "Alert"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Alert
impl EnumSetType for Alert
impl Eq for Alert
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§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
)