#[repr(i8)]pub enum ForeignExecutorCallbackResult {
Success = 0,
Cancelled = 1,
Error = 2,
}
Expand description
Reexport items from other uniffi creates
Result code returned by ForeignExecutorCallback
Variants§
Success = 0
Callback was scheduled successfully
Cancelled = 1
Callback couldn’t be scheduled because the foreign executor is canceled/closed.
Error = 2
Callback couldn’t be scheduled because of some other error
Implementations§
Source§impl ForeignExecutorCallbackResult
impl ForeignExecutorCallbackResult
Sourcepub fn check_result_code(result: i8) -> bool
pub fn check_result_code(result: i8) -> bool
Check the result code for the foreign executor callback
If the result was ForeignExecutorCallbackResult.Success
, this method returns true
.
If not, this method returns false
, logging errors for any unexpected return values
Trait Implementations§
Source§impl PartialEq for ForeignExecutorCallbackResult
impl PartialEq for ForeignExecutorCallbackResult
Source§fn eq(&self, other: &ForeignExecutorCallbackResult) -> bool
fn eq(&self, other: &ForeignExecutorCallbackResult) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ForeignExecutorCallbackResult
impl StructuralPartialEq for ForeignExecutorCallbackResult
Auto Trait Implementations§
impl Freeze for ForeignExecutorCallbackResult
impl RefUnwindSafe for ForeignExecutorCallbackResult
impl Send for ForeignExecutorCallbackResult
impl Sync for ForeignExecutorCallbackResult
impl Unpin for ForeignExecutorCallbackResult
impl UnwindSafe for ForeignExecutorCallbackResult
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