pub enum VmEvent {
Ready,
Output {
stream: OutputStream,
data: String,
},
CommandCompleted {
exit_code: i32,
},
Pong,
Shutdown,
}Expand description
Events emitted by supervisor to host.
Variants§
Ready
Supervisor is ready.
Output
Command output (stdout/stderr).
CommandCompleted
Command completed.
Pong
Pong response to ping.
Shutdown
Supervisor is shutting down.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmEvent
impl<'de> Deserialize<'de> for VmEvent
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 StructuralPartialEq for VmEvent
Auto Trait Implementations§
impl Freeze for VmEvent
impl RefUnwindSafe for VmEvent
impl Send for VmEvent
impl Sync for VmEvent
impl Unpin for VmEvent
impl UnsafeUnpin for VmEvent
impl UnwindSafe for VmEvent
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