Struct interceptor::registry::Registry
source · pub struct Registry { /* private fields */ }
Expand description
Registry is a collector for interceptors.
Implementations§
source§impl Registry
impl Registry
pub fn new() -> Self
sourcepub fn add(&mut self, builder: Box<dyn InterceptorBuilder + Send + Sync>)
pub fn add(&mut self, builder: Box<dyn InterceptorBuilder + Send + Sync>)
add adds a new InterceptorBuilder to the registry.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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