Skip to main content

Query

Trait Query 

Source
pub trait Query: Send {
    type Output: Send;
}
Expand description

A named read operation with an output type fixed by the query itself.

Query values should own their input so they can cross asynchronous and adapter boundaries without borrowing transport-specific data.

Required Associated Types§

Source

type Output: Send

Successful output produced by this query.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Q> Query for MessageEnvelope<Q>
where Q: Query,

Source§

type Output = <Q as Query>::Output