#[non_exhaustive]pub enum Response {
Show 24 variants
HealthOk,
CapabilityLoaded,
U64 {
value: u64,
},
HostSessionOpened,
Elaboration {
outcome: LeanWorkerElabResult,
},
KernelCheck {
outcome: LeanWorkerKernelResult,
},
Strings {
values: Vec<String>,
},
StreamComplete {
summary: StreamSummary,
},
StreamExportFailed {
status_byte: u8,
},
StreamCallbackFailed {
status_byte: u8,
description: String,
},
StreamRowMalformed {
message: String,
},
CapabilityMetadata {
metadata: LeanWorkerCapabilityMetadata,
},
CapabilityDoctor {
report: LeanWorkerDoctorReport,
},
CapabilityMetadataMalformed {
message: String,
},
CapabilityDoctorMalformed {
message: String,
},
JsonCommand {
response_json: String,
},
MetaExpr {
result: LeanWorkerMetaResult<LeanWorkerRendered>,
},
MetaBool {
result: LeanWorkerMetaResult<bool>,
},
Declaration {
row: Option<LeanWorkerDeclarationRow>,
},
DeclarationBulk {
rows: Vec<LeanWorkerDeclarationRow>,
},
ProcessModuleQuery {
outcome: LeanWorkerModuleQueryOutcome,
},
RowsComplete {
count: u64,
},
Terminating,
Error {
code: String,
message: String,
},
}Expand description
Child-issued terminal response body for one Request.
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.
HealthOk
CapabilityLoaded
U64
HostSessionOpened
Elaboration
Fields
§
outcome: LeanWorkerElabResultKernelCheck
Fields
§
outcome: LeanWorkerKernelResultStrings
StreamComplete
Fields
§
summary: StreamSummaryStreamExportFailed
StreamCallbackFailed
StreamRowMalformed
CapabilityMetadata
Fields
§
metadata: LeanWorkerCapabilityMetadataCapabilityDoctor
Fields
§
report: LeanWorkerDoctorReportCapabilityMetadataMalformed
CapabilityDoctorMalformed
JsonCommand
MetaExpr
Fields
§
result: LeanWorkerMetaResult<LeanWorkerRendered>MetaBool
Fields
§
result: LeanWorkerMetaResult<bool>Declaration
Fields
DeclarationBulk
Fields
§
rows: Vec<LeanWorkerDeclarationRow>ProcessModuleQuery
Fields
§
outcome: LeanWorkerModuleQueryOutcomeRowsComplete
Terminating
Error
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
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin 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