Enum r3_core::kernel::GetSemaphoreError
source · #[repr(i8)]
pub enum GetSemaphoreError {
NoAccess,
BadContext,
}
Expand description
Error type for Semaphore::get
.
See ResultCode
for all result codes and generic descriptions.
Variants§
Trait Implementations§
source§impl Clone for GetSemaphoreError
impl Clone for GetSemaphoreError
source§fn clone(&self) -> GetSemaphoreError
fn clone(&self) -> GetSemaphoreError
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 GetSemaphoreError
impl Debug for GetSemaphoreError
source§impl From<GetSemaphoreError> for ResultCode
impl From<GetSemaphoreError> for ResultCode
source§fn from(x: GetSemaphoreError) -> Self
fn from(x: GetSemaphoreError) -> Self
Converts to this type from the input type.
source§impl Hash for GetSemaphoreError
impl Hash for GetSemaphoreError
source§impl Ord for GetSemaphoreError
impl Ord for GetSemaphoreError
source§fn cmp(&self, other: &GetSemaphoreError) -> Ordering
fn cmp(&self, other: &GetSemaphoreError) -> 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<GetSemaphoreError> for GetSemaphoreError
impl PartialEq<GetSemaphoreError> for GetSemaphoreError
source§fn eq(&self, other: &GetSemaphoreError) -> bool
fn eq(&self, other: &GetSemaphoreError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GetSemaphoreError> for GetSemaphoreError
impl PartialOrd<GetSemaphoreError> for GetSemaphoreError
source§fn partial_cmp(&self, other: &GetSemaphoreError) -> Option<Ordering>
fn partial_cmp(&self, other: &GetSemaphoreError) -> 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