Skip to main content

Guard

Trait Guard 

Source
pub trait Guard:
    Send
    + Sync
    + 'static {
    // Required method
    fn check(&self, ctx: &RequestContext) -> Result<(), Error>;
}

Required Methods§

Source

fn check(&self, ctx: &RequestContext) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§