pub enum WireExpression {
Show 15 variants
Null,
Bool(bool),
Number(Number),
String(String),
Array(Vec<WireExpression>),
Object(HashMap<String, WireExpression>),
Error {
error_type: String,
message: String,
stack: Option<String>,
},
Import(i64),
Export {
id: i64,
is_promise: bool,
},
Promise(i64),
Pipeline {
import_id: i64,
property_path: Option<Vec<PropertyKey>>,
args: Option<Box<WireExpression>>,
},
Call {
cap_id: i64,
property_path: Vec<PropertyKey>,
args: Box<WireExpression>,
},
Date(f64),
Remap(Value),
CapRef(i64),
}
Expand description
Wire protocol expressions
Variants§
Null
Bool(bool)
Number(Number)
String(String)
Array(Vec<WireExpression>)
Object(HashMap<String, WireExpression>)
Error
[“error”, type, message, stack?]
Import(i64)
[“import”, id]
Export
[“export”, id, promise?]
Promise(i64)
[“promise”, id]
Pipeline
[“pipeline”, import_id, property_path?, args?]
Call
[“call”, cap_id, property_path, args]
Date(f64)
[“date”, timestamp]
Remap(Value)
[“remap”, plan]
CapRef(i64)
[“capref”, id] - Reference to a capability for marshaling
Implementations§
Trait Implementations§
Source§impl Clone for WireExpression
impl Clone for WireExpression
Source§fn clone(&self) -> WireExpression
fn clone(&self) -> WireExpression
Returns a duplicate of the value. Read more
1.0.0 · 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 WireExpression
impl Debug for WireExpression
Source§impl PartialEq for WireExpression
impl PartialEq for WireExpression
impl StructuralPartialEq for WireExpression
Auto Trait Implementations§
impl Freeze for WireExpression
impl RefUnwindSafe for WireExpression
impl Send for WireExpression
impl Sync for WireExpression
impl Unpin for WireExpression
impl UnwindSafe for WireExpression
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