Trait poem::guard::Guard[][src]

pub trait Guard: Send + Sync + 'static {
    fn check(&self, req: &Request) -> bool;
}
Expand description

Represents a guard used for route selection.

Required methods

Check if request matches predicate for route selection.

Implementors