pub struct Reply {
pub tag: u64,
pub result: Result<Value, String>,
pub bytes: Option<(&'static str, Vec<u8>)>,
}Expand description
The reply to a command that asked for one.
Fields§
§tag: u64The host’s tag for the command (Engine::command).
result: Result<Value, String>The result, or the error’s message.
bytes: Option<(&'static str, Vec<u8>)>Bytes that belong in the result’s field of this name (saveState’s
state): the Worker passes them as a Uint8Array, JSON hosts as
base64.
Trait Implementations§
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Forget for Reply
impl Freeze for Reply
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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