#[non_exhaustive]pub enum WorkerEvent {
Stdout(Vec<u8>),
Stderr(Vec<u8>),
Exit(i32),
Diagnostic(DiagnosticLevel, String),
FsChanged(String),
Version(String),
}Expand description
An event sent from the worker to the host.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stdout(Vec<u8>)
Shell produced stdout output.
Stderr(Vec<u8>)
Shell produced stderr output.
Exit(i32)
Command execution finished with exit code.
Diagnostic(DiagnosticLevel, String)
A diagnostic message (warning, info, trace).
FsChanged(String)
A file in the VFS was changed.
Version(String)
Protocol version announcement (sent on Init).
Trait Implementations§
Source§impl Clone for WorkerEvent
impl Clone for WorkerEvent
Source§fn clone(&self) -> WorkerEvent
fn clone(&self) -> WorkerEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkerEvent
impl Debug for WorkerEvent
Source§impl<'de> Deserialize<'de> for WorkerEvent
impl<'de> Deserialize<'de> for WorkerEvent
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
Source§impl PartialEq for WorkerEvent
impl PartialEq for WorkerEvent
Source§impl Serialize for WorkerEvent
impl Serialize for WorkerEvent
impl Eq for WorkerEvent
impl StructuralPartialEq for WorkerEvent
Auto Trait Implementations§
impl Freeze for WorkerEvent
impl RefUnwindSafe for WorkerEvent
impl Send for WorkerEvent
impl Sync for WorkerEvent
impl Unpin for WorkerEvent
impl UnsafeUnpin for WorkerEvent
impl UnwindSafe for WorkerEvent
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