pub enum Op<'a> {
Call {
f: FnHandle,
this: This<'a>,
args: &'a [Value],
settle: Settle,
},
PageOnce {
data: &'a Value,
traps: &'a [(String, String)],
defaults: &'a [String],
f: FnHandle,
},
PageOpenWithVars {
data: &'a Value,
traps: &'a [(String, String)],
defaults: &'a [String],
functions: &'a [FnHandle],
keys: &'a [String],
},
PageRun {
page: PageId,
steps: &'a [PageStep<'a>],
},
Render {
template: TemplateId,
data: &'a Value,
first: Option<&'a Value>,
traps: &'a [(String, String)],
},
}Expand description
An operation the pages make while they build, for JsRuntime::begin.
Variants§
Call
PageOnce
PageOpenWithVars
JsRuntime::page_open_with_vars: the results are the open’s and
each function’s list, or the one that failed.
Fields
PageRun
Render
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Op<'a>
impl<'a> Freeze for Op<'a>
impl<'a> Move for Op<'a>
impl<'a> RefUnwindSafe for Op<'a>
impl<'a> Send for Op<'a>
impl<'a> Sync for Op<'a>
impl<'a> Unpin for Op<'a>
impl<'a> UnsafeUnpin for Op<'a>where
&'a Value: UnsafeUnpin,
&'a [(&'a str, &'a str)]: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a [Value]: UnsafeUnpin,
&'a [(String, String)]: UnsafeUnpin,
&'a [String]: UnsafeUnpin,
&'a [FnHandle]: UnsafeUnpin,
&'a [PageStep<'a>]: UnsafeUnpin,
impl<'a> UnwindSafe for Op<'a>where
&'a Value: UnwindSafe,
&'a [(&'a str, &'a str)]: UnwindSafe,
&'static str: UnwindSafe,
&'a [Value]: UnwindSafe,
&'a [(String, String)]: UnwindSafe,
&'a [String]: UnwindSafe,
&'a [FnHandle]: UnwindSafe,
&'a [PageStep<'a>]: UnwindSafe,
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