Struct interceptor::report::ReportBuilder
source · pub struct ReportBuilder { /* private fields */ }
Expand description
ReceiverBuilder can be used to configure ReceiverReport Interceptor.
Implementations§
source§impl ReportBuilder
impl ReportBuilder
sourcepub fn with_interval(self, interval: Duration) -> ReportBuilder
pub fn with_interval(self, interval: Duration) -> ReportBuilder
with_interval sets send interval for the interceptor.
sourcepub fn with_now_fn(
self,
now: Arc<dyn Fn() -> SystemTime + Sync + Send + 'static>
) -> ReportBuilder
pub fn with_now_fn( self, now: Arc<dyn Fn() -> SystemTime + Sync + Send + 'static> ) -> ReportBuilder
with_now_fn sets an alternative for the time.Now function.
Trait Implementations§
source§impl Default for ReportBuilder
impl Default for ReportBuilder
source§fn default() -> ReportBuilder
fn default() -> ReportBuilder
Returns the “default value” for a type. Read more
source§impl InterceptorBuilder for ReportBuilder
impl InterceptorBuilder for ReportBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for ReportBuilder
impl Send for ReportBuilder
impl Sync for ReportBuilder
impl Unpin for ReportBuilder
impl !UnwindSafe for ReportBuilder
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