pub struct ScopedAsyncGuard<E: ExternalGuard> { /* private fields */ }Expand description
Synchronous kernel bridge for an async external guard adapter.
The kernel guard pipeline is synchronous today, so this wrapper executes the async adapter on a Tokio runtime and optionally scopes the guard to a subset of tool-name patterns.
Implementations§
Source§impl<E: ExternalGuard> ScopedAsyncGuard<E>
impl<E: ExternalGuard> ScopedAsyncGuard<E>
Sourcepub fn new(adapter: AsyncGuardAdapter<E>, tool_patterns: Vec<String>) -> Self
pub fn new(adapter: AsyncGuardAdapter<E>, tool_patterns: Vec<String>) -> Self
Wrap an async adapter for the kernel guard pipeline.
Trait Implementations§
Source§impl<E: ExternalGuard> Guard for ScopedAsyncGuard<E>
impl<E: ExternalGuard> Guard for ScopedAsyncGuard<E>
Auto Trait Implementations§
impl<E> !Freeze for ScopedAsyncGuard<E>
impl<E> !RefUnwindSafe for ScopedAsyncGuard<E>
impl<E> Send for ScopedAsyncGuard<E>
impl<E> Sync for ScopedAsyncGuard<E>
impl<E> Unpin for ScopedAsyncGuard<E>
impl<E> UnsafeUnpin for ScopedAsyncGuard<E>
impl<E> !UnwindSafe for ScopedAsyncGuard<E>
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