pub struct SecurityChain { /* private fields */ }
Expand description
Executes all registered providers.
Implementations§
Source§impl SecurityChain
impl SecurityChain
pub fn new() -> Self
Sourcepub async fn from_configs(cfgs: Vec<ProviderConfig>) -> Result<Self, ProxyError>
pub async fn from_configs(cfgs: Vec<ProviderConfig>) -> Result<Self, ProxyError>
Build from raw config list.
pub fn add(&mut self, p: Arc<dyn SecurityProvider>)
pub async fn apply_pre( &self, req: ProxyRequest, ) -> Result<ProxyRequest, ProxyError>
pub async fn apply_post( &self, req: ProxyRequest, resp: ProxyResponse, ) -> Result<ProxyResponse, ProxyError>
Trait Implementations§
Source§impl Debug for SecurityChain
impl Debug for SecurityChain
Auto Trait Implementations§
impl Freeze for SecurityChain
impl !RefUnwindSafe for SecurityChain
impl Send for SecurityChain
impl Sync for SecurityChain
impl Unpin for SecurityChain
impl !UnwindSafe for SecurityChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more