pub enum Response {
ProcessResult {
request_id: Uuid,
exit_code: i32,
stdout: Bytes,
stderr: Bytes,
duration_ms: u64,
},
FileContent {
request_id: Uuid,
content: Bytes,
metadata: FileMetadata,
},
FilePutResult {
request_id: Uuid,
bytes_written: u64,
},
DirListing {
request_id: Uuid,
entries: Vec<DirEntry>,
},
WasmResult {
request_id: Uuid,
output: Bytes,
duration_ms: u64,
},
JsonResult {
request_id: Uuid,
result: Bytes,
},
Pong {
request_id: Uuid,
timestamp: u64,
response_timestamp: u64,
},
PtyResult {
request_id: Uuid,
exit_code: i32,
output: Bytes,
duration_ms: u64,
},
Error {
request_id: Uuid,
error: ErrorDetails,
},
}Expand description
Response message types
Variants§
ProcessResult
Process execution result
Fields
FileContent
File get result
Fields
§
metadata: FileMetadataFile metadata
FilePutResult
File put result
DirListing
Directory listing result
WasmResult
WASM execution result
Fields
JsonResult
JSON RPC result
Pong
Pong response
Fields
PtyResult
PTY process execution result
Fields
Error
Error response
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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