Skip to main content

Query

Trait Query 

Source
pub trait Query: Send + Sync {
    type Result: Send + Sync;
}
Expand description

Marker trait for CQRS queries.

Queries represent requests for information and should not cause any side effects in the system.

Required Associated Types§

Source

type Result: Send + Sync

The result type returned by the query.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§