caelix-core 0.0.36

Core primitives for the Caelix framework.
Documentation
1
2
3
4
5
6
7
use crate::{BoxFuture, RequestContext, Result};

/// Public Caelix extension trait `Guard`.
pub trait Guard: Send + Sync + 'static {
    /// Public Caelix API.
    fn can_activate<'a>(&'a self, ctx: &'a RequestContext) -> BoxFuture<'a, Result<bool>>;
}