[][src]Trait domain_patterns::query::HandlesQuery

pub trait HandlesQuery<T: Query> {
    type Result;
    fn handle(&mut self, query: T) -> Self::Result;
}

HandlesQuery is a trait that you apply to a struct, which knows how to handle a query. A query is a struct or enum that implements the Query trait, and is a parameter object that we can use to construct a custom query.

Associated Types

type Result

Loading content...

Required methods

fn handle(&mut self, query: T) -> Self::Result

Loading content...

Implementors

Loading content...