#[non_exhaustive]pub enum Message {
Handshake {
worker_version: String,
protocol_version: u16,
},
Request(Request),
Response(Response),
Diagnostic(Diagnostic),
ProgressTick(ProgressTick),
DataRow(DataRow),
FatalExit(FatalExit),
}Expand description
One protocol message exchanged over the worker boundary.
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.
Handshake
Sent by the child immediately after spawn to advertise its version and supported protocol revision.
Fields
Request(Request)
Parent → child request frame.
Response(Response)
Child → parent terminal response for one request.
Diagnostic(Diagnostic)
Child → parent intermediate diagnostic frame.
ProgressTick(ProgressTick)
Child → parent intermediate progress frame.
DataRow(DataRow)
Child → parent streaming data row frame.
FatalExit(FatalExit)
Child → parent fatal exit notification carrying the captured stderr just before the child process tears down.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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