pub struct WorkRuntime { /* private fields */ }Expand description
Evaluates plans against explicit targets and an optional suspension bridge.
Implementations§
Source§impl WorkRuntime
impl WorkRuntime
pub fn new(registry: WorkRegistry) -> Self
pub fn registry(&self) -> WorkRegistry
pub fn with_suspension(self, suspension: SuspensionTarget) -> Self
pub fn reset(&self)
pub fn evaluate( &self, plan: &WorkPlan, input: Value, context: WorkContext, ) -> Result<Value, PromiseRejection>
Trait Implementations§
Source§impl Clone for WorkRuntime
impl Clone for WorkRuntime
Source§fn clone(&self) -> WorkRuntime
fn clone(&self) -> WorkRuntime
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 Default for WorkRuntime
impl Default for WorkRuntime
Source§fn default() -> WorkRuntime
fn default() -> WorkRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for WorkRuntime
impl !Send for WorkRuntime
impl !Sync for WorkRuntime
impl !UnwindSafe for WorkRuntime
impl Freeze for WorkRuntime
impl Unpin for WorkRuntime
impl UnsafeUnpin for WorkRuntime
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