pub struct PreparedCall { /* private fields */ }Expand description
A stable global function cell plus a validated argument-call stub.
The Var is dereferenced for every call, so redefining its root takes effect without rebuilding the handle. Arguments enter lexical slots directly; no request binding is interned into a namespace.
Implementations§
Source§impl PreparedCall
impl PreparedCall
pub fn symbol(&self) -> &str
pub fn arity(&self) -> u16
Sourcepub fn start(&self, arguments: Vec<Value>) -> Result<VmFiber, String>
pub fn start(&self, arguments: Vec<Value>) -> Result<VmFiber, String>
Starts one resumable invocation with the current root of the Var.
Sourcepub fn invoke(&self, arguments: Vec<Value>) -> Result<Value, String>
pub fn invoke(&self, arguments: Vec<Value>) -> Result<Value, String>
Invokes the prepared Var without the synthetic outer call machine.
Compiled closures run their own machine and return a Promise only when execution actually suspends. Embedders that already own continuation scheduling can use this path to avoid wrapping every synchronous call in a second VM.
Trait Implementations§
Source§impl Clone for PreparedCall
impl Clone for PreparedCall
Source§fn clone(&self) -> PreparedCall
fn clone(&self) -> PreparedCall
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PreparedCall
impl !Send for PreparedCall
impl !Sync for PreparedCall
impl !UnwindSafe for PreparedCall
impl Freeze for PreparedCall
impl Unpin for PreparedCall
impl UnsafeUnpin for PreparedCall
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more