Skip to main content

Guard

Trait Guard 

Source
pub trait Guard:
    Send
    + Sync
    + 'static {
    // Required method
    fn check(&self, call: &Call) -> bool;
}
Expand description

A predicate over the request. See the module docs.

Required Methods§

Source

fn check(&self, call: &Call) -> bool

Whether this route may serve the request.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§