#[repr(C)]pub enum KactionError {
Unknown = 0,
InvalidArgument = 1,
NotFound = 2,
ResourceAllocationFailed = 3,
OutOfMemory = 4,
}
Expand description
Possible error values for KAction.
Variants§
Unknown = 0
An unknown error.
InvalidArgument = 1
An argument was invalid.
NotFound = 2
The object was not found.
ResourceAllocationFailed = 3
Failed to allocate a resource due to exhaustion.
OutOfMemory = 4
The request required a memory allocation that could not be satisfied.
Trait Implementations§
source§impl Clone for KactionError
impl Clone for KactionError
source§fn clone(&self) -> KactionError
fn clone(&self) -> KactionError
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 KactionError
impl Debug for KactionError
source§impl From<KactionError> for u64
impl From<KactionError> for u64
source§fn from(x: KactionError) -> Self
fn from(x: KactionError) -> Self
Converts to this type from the input type.
source§impl From<u64> for KactionError
impl From<u64> for KactionError
source§impl Ord for KactionError
impl Ord for KactionError
source§fn cmp(&self, other: &KactionError) -> Ordering
fn cmp(&self, other: &KactionError) -> 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 for KactionError
impl PartialEq for KactionError
source§impl PartialOrd for KactionError
impl PartialOrd for KactionError
impl Copy for KactionError
impl Eq for KactionError
impl StructuralPartialEq for KactionError
Auto Trait Implementations§
impl Freeze for KactionError
impl ObjSafe for KactionError
impl RefUnwindSafe for KactionError
impl Send for KactionError
impl Sync for KactionError
impl Unpin for KactionError
impl UnwindSafe for KactionError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.