pub struct ScopeBuilder { /* private fields */ }
Expand description
Exporter builder
Implementations§
Source§impl ScopeBuilder
impl ScopeBuilder
Sourcepub fn with_addr<A: Into<SocketAddr>>(self, addr: A) -> Self
pub fn with_addr<A: Into<SocketAddr>>(self, addr: A) -> Self
Set the server listening address and port
Sourcepub fn with_fallback(self, fallback: Box<dyn Recorder + Send + Sync>) -> Self
pub fn with_fallback(self, fallback: Box<dyn Recorder + Send + Sync>) -> Self
Set the fallback recorder
Sourcepub fn build(self) -> ScopeRecorder
pub fn build(self) -> ScopeRecorder
Build the exporter’s recorder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeBuilder
impl !RefUnwindSafe for ScopeBuilder
impl Send for ScopeBuilder
impl Sync for ScopeBuilder
impl Unpin for ScopeBuilder
impl !UnwindSafe for ScopeBuilder
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