Enum r3_core::kernel::SignalSemaphoreError
source · #[repr(i8)]
pub enum SignalSemaphoreError {
NoAccess,
BadContext,
QueueOverflow,
}
Expand description
Error type for Semaphore::signal
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NoAccess
Invalid object access.
BadContext
CPU Lock is active.
QueueOverflow
The semaphore value is already at the maximum value.
Trait Implementations§
source§impl Clone for SignalSemaphoreError
impl Clone for SignalSemaphoreError
source§fn clone(&self) -> SignalSemaphoreError
fn clone(&self) -> SignalSemaphoreError
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 SignalSemaphoreError
impl Debug for SignalSemaphoreError
source§impl From<SignalSemaphoreError> for ResultCode
impl From<SignalSemaphoreError> for ResultCode
source§fn from(x: SignalSemaphoreError) -> Self
fn from(x: SignalSemaphoreError) -> Self
Converts to this type from the input type.
source§impl Hash for SignalSemaphoreError
impl Hash for SignalSemaphoreError
source§impl Ord for SignalSemaphoreError
impl Ord for SignalSemaphoreError
source§fn cmp(&self, other: &SignalSemaphoreError) -> Ordering
fn cmp(&self, other: &SignalSemaphoreError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SignalSemaphoreError> for SignalSemaphoreError
impl PartialEq<SignalSemaphoreError> for SignalSemaphoreError
source§fn eq(&self, other: &SignalSemaphoreError) -> bool
fn eq(&self, other: &SignalSemaphoreError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SignalSemaphoreError> for SignalSemaphoreError
impl PartialOrd<SignalSemaphoreError> for SignalSemaphoreError
source§fn partial_cmp(&self, other: &SignalSemaphoreError) -> Option<Ordering>
fn partial_cmp(&self, other: &SignalSemaphoreError) -> 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 more