pub enum CommandOutputEvent {
Output {
stream: OutputStream,
offset: u64,
chunk: ByteChunk,
},
Command {
command: SandboxCommand,
},
}Expand description
What GET /api/sandboxes/{id}/commands/{n}/output?follow=true sends, each
event’s data: a command’s output as it’s written, from the offsets asked
for, and the command each time it changes. The stream ends once the
command ended, after all it wrote.
Variants§
Output
What it wrote to stream, from offset. A stream’s chunks come in
order, with no gap and no overlap.
Command
The command as it is: after its output so far, and after each change. The last event is the command, ended.
Fields
§
command: SandboxCommandTrait Implementations§
Source§impl Clone for CommandOutputEvent
impl Clone for CommandOutputEvent
Source§impl Debug for CommandOutputEvent
impl Debug for CommandOutputEvent
Source§impl<'de> Deserialize<'de> for CommandOutputEvent
impl<'de> Deserialize<'de> for CommandOutputEvent
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
impl Eq for CommandOutputEvent
Source§impl PartialEq for CommandOutputEvent
impl PartialEq for CommandOutputEvent
Source§impl Serialize for CommandOutputEvent
impl Serialize for CommandOutputEvent
impl StructuralPartialEq for CommandOutputEvent
Auto Trait Implementations§
impl Forget for CommandOutputEvent
impl Freeze for CommandOutputEvent
impl RefUnwindSafe for CommandOutputEvent
impl Send for CommandOutputEvent
impl Sync for CommandOutputEvent
impl Unpin for CommandOutputEvent
impl UnsafeUnpin for CommandOutputEvent
impl UnwindSafe for CommandOutputEvent
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