pub trait KernelRequest:
RingMessage
+ Send
+ Sync {
// Required methods
fn correlation_id(&self) -> CorrelationId;
fn set_correlation_id(&mut self, id: CorrelationId);
}Expand description
Base trait for kernel request messages.
Required Methods§
Sourcefn correlation_id(&self) -> CorrelationId
fn correlation_id(&self) -> CorrelationId
Get the correlation ID for this request.
Sourcefn set_correlation_id(&mut self, id: CorrelationId)
fn set_correlation_id(&mut self, id: CorrelationId)
Set the correlation ID.
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.