#[repr(u8)]pub enum LeanCallbackStatus {
Ok = 0,
StaleHandle = 1,
Panic = 2,
WrongPayload = 3,
Stopped = 4,
}Expand description
Status returned by the Rust callback trampoline to Lean.
Lean shims should treat any value other than Ok as a request
to stop the current callback loop and return the status to Rust.
Variants§
Ok = 0
The callback ran successfully.
StaleHandle = 1
Lean called an id that is no longer registered.
Panic = 2
The registered Rust callback panicked and the trampoline contained it.
WrongPayload = 3
Lean called a handle through a trampoline for the wrong payload type.
Stopped = 4
The registered Rust callback asked Lean to stop cleanly.
Implementations§
Trait Implementations§
Source§impl Clone for LeanCallbackStatus
impl Clone for LeanCallbackStatus
Source§fn clone(&self) -> LeanCallbackStatus
fn clone(&self) -> LeanCallbackStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LeanCallbackStatus
impl Debug for LeanCallbackStatus
Source§impl PartialEq for LeanCallbackStatus
impl PartialEq for LeanCallbackStatus
Source§fn eq(&self, other: &LeanCallbackStatus) -> bool
fn eq(&self, other: &LeanCallbackStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeanCallbackStatus
impl Eq for LeanCallbackStatus
impl StructuralPartialEq for LeanCallbackStatus
Auto Trait Implementations§
impl Freeze for LeanCallbackStatus
impl RefUnwindSafe for LeanCallbackStatus
impl Send for LeanCallbackStatus
impl Sync for LeanCallbackStatus
impl Unpin for LeanCallbackStatus
impl UnsafeUnpin for LeanCallbackStatus
impl UnwindSafe for LeanCallbackStatus
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