pub enum BinaryFrame {
Authenticate {
token: String,
},
CreateSession {
session_id: String,
heap_limit_mb: u32,
cpu_time_limit_ms: u32,
wall_clock_limit_ms: u32,
},
DestroySession {
session_id: String,
},
InjectGlobals {
session_id: String,
payload: Vec<u8>,
},
Execute {
session_id: String,
mode: u8,
file_path: String,
bridge_code: String,
post_restore_script: String,
userland_code: String,
high_resolution_time: bool,
user_code: String,
},
BridgeResponse {
session_id: String,
call_id: u64,
status: u8,
payload: Vec<u8>,
},
StreamEvent {
session_id: String,
event_type: String,
payload: Vec<u8>,
},
TerminateExecution {
session_id: String,
},
BridgeCall {
session_id: String,
call_id: u64,
method: String,
payload: Vec<u8>,
},
ExecutionResult {
session_id: String,
exit_code: i32,
exports: Option<Vec<u8>>,
error: Option<ExecutionErrorBin>,
},
Log {
session_id: String,
channel: u8,
message: String,
},
StreamCallback {
session_id: String,
callback_type: String,
payload: Vec<u8>,
},
}Expand description
A decoded binary frame.
Variants§
Authenticate
CreateSession
DestroySession
InjectGlobals
Execute
Fields
BridgeResponse
StreamEvent
TerminateExecution
BridgeCall
ExecutionResult
Log
StreamCallback
Trait Implementations§
Source§impl Clone for BinaryFrame
impl Clone for BinaryFrame
Source§fn clone(&self) -> BinaryFrame
fn clone(&self) -> BinaryFrame
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 Debug for BinaryFrame
impl Debug for BinaryFrame
Source§impl PartialEq for BinaryFrame
impl PartialEq for BinaryFrame
Source§fn eq(&self, other: &BinaryFrame) -> bool
fn eq(&self, other: &BinaryFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryFrame
Auto Trait Implementations§
impl Freeze for BinaryFrame
impl RefUnwindSafe for BinaryFrame
impl Send for BinaryFrame
impl Sync for BinaryFrame
impl Unpin for BinaryFrame
impl UnsafeUnpin for BinaryFrame
impl UnwindSafe for BinaryFrame
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