Skip to main content

BoxedInterceptor

Type Alias BoxedInterceptor 

Source
pub type BoxedInterceptor = Box<dyn Interceptor>;
Expand description

A type-erased interceptor chain.

Interceptor is object safe, so a chain built at runtime can be erased into this one concrete type. That lets an application store a RTCPeerConnection<BoxedInterceptor> (see Registry::boxed) instead of being generic over the chain’s type.

Aliased Type§

pub struct BoxedInterceptor(/* private fields */);