pub trait KernelResponse:
RingMessage
+ Send
+ Sync {
// Required methods
fn correlation_id(&self) -> CorrelationId;
fn is_success(&self) -> bool;
fn error_message(&self) -> Option<&str>;
}Expand description
Base trait for kernel response messages.
Required Methods§
Sourcefn correlation_id(&self) -> CorrelationId
fn correlation_id(&self) -> CorrelationId
Get the correlation ID that this response corresponds to.
Sourcefn is_success(&self) -> bool
fn is_success(&self) -> bool
Check if the response indicates success.
Sourcefn error_message(&self) -> Option<&str>
fn error_message(&self) -> Option<&str>
Get any error message if the response indicates failure.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.