Trait ockam_core::AccessControl
source · [−]pub trait AccessControl: Send + Sync + 'static {
fn msg_is_authorized<'life0, 'life1, 'async_trait>(
&'life0 mut self,
local_msg: &'life1 LocalMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Access control
Required methods
Returns true if message is allowed to pass, and false if not