Enum r3::kernel::GetSemaphoreError
source · pub enum GetSemaphoreError {
NoAccess,
BadContext,
}
Expand description
Error type for Semaphore::get
.
See ResultCode
for all result codes and generic descriptions.
Variants
NoAccess
Invalid object access.
BadContext
CPU Lock is active.
Trait Implementations
sourceimpl Clone for GetSemaphoreError
impl Clone for GetSemaphoreError
sourcefn clone(&self) -> GetSemaphoreError
fn clone(&self) -> GetSemaphoreError
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 GetSemaphoreError
impl Debug for GetSemaphoreError
sourceimpl From<GetSemaphoreError> for ResultCode
impl From<GetSemaphoreError> for ResultCode
sourcefn from(x: GetSemaphoreError) -> ResultCode
fn from(x: GetSemaphoreError) -> ResultCode
Converts to this type from the input type.
sourceimpl Hash for GetSemaphoreError
impl Hash for GetSemaphoreError
sourceimpl Ord for GetSemaphoreError
impl Ord for GetSemaphoreError
sourcefn cmp(&self, other: &GetSemaphoreError) -> Ordering
fn cmp(&self, other: &GetSemaphoreError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GetSemaphoreError> for GetSemaphoreError
impl PartialEq<GetSemaphoreError> for GetSemaphoreError
sourcefn eq(&self, other: &GetSemaphoreError) -> bool
fn eq(&self, other: &GetSemaphoreError) -> bool
sourceimpl PartialOrd<GetSemaphoreError> for GetSemaphoreError
impl PartialOrd<GetSemaphoreError> for GetSemaphoreError
sourcefn partial_cmp(&self, other: &GetSemaphoreError) -> Option<Ordering>
fn partial_cmp(&self, other: &GetSemaphoreError) -> Option<Ordering>
1.0.0 · sourcefn 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 GetSemaphoreError
impl Eq for GetSemaphoreError
impl StructuralEq for GetSemaphoreError
impl StructuralPartialEq for GetSemaphoreError
Auto Trait Implementations
impl RefUnwindSafe for GetSemaphoreError
impl Send for GetSemaphoreError
impl Sync for GetSemaphoreError
impl Unpin for GetSemaphoreError
impl UnwindSafe for GetSemaphoreError
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