pub enum LeanCallbackFlow {
Continue,
Stop,
}Expand description
Flow decision returned by a Rust callback.
Lean shims should continue their callback loop only when the trampoline
returns LeanCallbackStatus::Ok. Returning Stop asks the
Lean loop to stop cleanly and return [LeanCallbackStatus::Stopped).
Variants§
Continue
Continue the Lean-side callback loop.
Stop
Stop the Lean-side callback loop without treating the callback as a panic or stale-handle failure.
Trait Implementations§
Source§impl Clone for LeanCallbackFlow
impl Clone for LeanCallbackFlow
Source§fn clone(&self) -> LeanCallbackFlow
fn clone(&self) -> LeanCallbackFlow
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 LeanCallbackFlow
impl Debug for LeanCallbackFlow
Source§impl PartialEq for LeanCallbackFlow
impl PartialEq for LeanCallbackFlow
Source§fn eq(&self, other: &LeanCallbackFlow) -> bool
fn eq(&self, other: &LeanCallbackFlow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeanCallbackFlow
impl Eq for LeanCallbackFlow
impl StructuralPartialEq for LeanCallbackFlow
Auto Trait Implementations§
impl Freeze for LeanCallbackFlow
impl RefUnwindSafe for LeanCallbackFlow
impl Send for LeanCallbackFlow
impl Sync for LeanCallbackFlow
impl Unpin for LeanCallbackFlow
impl UnsafeUnpin for LeanCallbackFlow
impl UnwindSafe for LeanCallbackFlow
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