Query

Trait Query 

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

Alias for a Request that represents a Query.

Return a result and do not change the observable state of the system (are free of side effects). Trait for representing a Request.

Requests are usually Commands or Queries, and their sole requirement is to have an associated Response type.

Required Associated Types§

Source

type Response: Send

Request response type.

Implementors§