pub struct SharedInterceptor(_);Expand description
Interceptor wrapper that may be shared
Implementations§
sourcepub fn new(interceptor: impl Interceptor + Send + Sync + 'static) -> Self
pub fn new(interceptor: impl Interceptor + Send + Sync + 'static) -> Self
Create a new SharedInterceptor from Interceptor
Trait Implementations§
source§fn as_ref(&self) -> &(dyn Interceptor + 'static)
fn as_ref(&self) -> &(dyn Interceptor + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
source§fn clone(&self) -> SharedInterceptor
fn clone(&self) -> SharedInterceptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§fn extend<T: IntoIterator<Item = SharedInterceptor>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = SharedInterceptor>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more