KernelResponse

Trait KernelResponse 

Source
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§

Source

fn correlation_id(&self) -> CorrelationId

Get the correlation ID that this response corresponds to.

Source

fn is_success(&self) -> bool

Check if the response indicates success.

Source

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.

Implementors§