#[repr(u32)]pub enum ApexReturnCode {
NoError = 0,
NoAction = 1,
NotAvailable = 2,
InvalidParam = 3,
InvalidConfig = 4,
InvalidMode = 5,
TimedOut = 6,
}Variants§
NoError = 0
NoAction = 1
NotAvailable = 2
InvalidParam = 3
InvalidConfig = 4
InvalidMode = 5
TimedOut = 6
Implementations§
Source§impl ApexReturnCode
impl ApexReturnCode
pub fn as_result<T>(self, ok: T) -> Result<T, ApexReturnCode>
Trait Implementations§
Source§impl Clone for ApexReturnCode
impl Clone for ApexReturnCode
Source§fn clone(&self) -> ApexReturnCode
fn clone(&self) -> ApexReturnCode
Returns a duplicate 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 ApexReturnCode
impl Debug for ApexReturnCode
Source§impl Default for ApexReturnCode
impl Default for ApexReturnCode
Source§fn default() -> ApexReturnCode
fn default() -> ApexReturnCode
Returns the “default value” for a type. Read more
Source§impl From<ApexReturnCode> for Result<(), ApexReturnCode>
impl From<ApexReturnCode> for Result<(), ApexReturnCode>
Source§fn from(value: ApexReturnCode) -> Self
fn from(value: ApexReturnCode) -> Self
Converts to this type from the input type.
Source§impl From<usize> for ApexReturnCode
impl From<usize> for ApexReturnCode
Source§impl PartialEq for ApexReturnCode
impl PartialEq for ApexReturnCode
impl Copy for ApexReturnCode
impl Eq for ApexReturnCode
impl StructuralPartialEq for ApexReturnCode
Auto Trait Implementations§
impl Freeze for ApexReturnCode
impl RefUnwindSafe for ApexReturnCode
impl Send for ApexReturnCode
impl Sync for ApexReturnCode
impl Unpin for ApexReturnCode
impl UnwindSafe for ApexReturnCode
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