pub struct TwccReceiverBuilder { /* private fields */ }Expand description
Builder for the TwccReceiverInterceptor.
§Example
use rtc_interceptor::{Slot, Registry, TwccReceiverBuilder};
use std::time::Duration;
let chain = Registry::new()
.with(Slot::TwccReceiver, TwccReceiverBuilder::new()
.with_interval(Duration::from_millis(100))
.build())
.build();Implementations§
Source§impl TwccReceiverBuilder
impl TwccReceiverBuilder
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Set the interval between feedback reports.
Sourcepub fn build(self) -> TwccReceiverInterceptor
pub fn build(self) -> TwccReceiverInterceptor
Build the interceptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TwccReceiverBuilder
impl RefUnwindSafe for TwccReceiverBuilder
impl Send for TwccReceiverBuilder
impl Sync for TwccReceiverBuilder
impl Unpin for TwccReceiverBuilder
impl UnsafeUnpin for TwccReceiverBuilder
impl UnwindSafe for TwccReceiverBuilder
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