Struct async_lsp::tracing::TracingBuilder  
source · pub struct TracingBuilder { /* private fields */ }Available on crate feature 
tracing only.Expand description
The builder of Tracing middleware.
See module level documentations for details.
Implementations§
source§impl TracingBuilder
 
impl TracingBuilder
sourcepub fn new() -> Self
 
pub fn new() -> Self
Creating the builder with no spans configured.
NB. This is NOT the same as TracingBuilder::default which configures ALL default
spans.
sourcepub fn service_ready(self, f: fn() -> Span) -> Self
 
pub fn service_ready(self, f: fn() -> Span) -> Self
Set a tracing::Span builder to instrument Service::poll_ready method.
sourcepub fn request(self, f: fn(_: &AnyRequest) -> Span) -> Self
 
pub fn request(self, f: fn(_: &AnyRequest) -> Span) -> Self
Set a tracing::Span builder to instrument Future::poll of the Future returned by
Service::call.
sourcepub fn notification(self, f: fn(_: &AnyNotification) -> Span) -> Self
 
pub fn notification(self, f: fn(_: &AnyNotification) -> Span) -> Self
Set a tracing::Span builder to instrument LspService::notify.
sourcepub fn event(self, f: fn(_: &AnyEvent) -> Span) -> Self
 
pub fn event(self, f: fn(_: &AnyEvent) -> Span) -> Self
Set a tracing::Span builder to instrument LspService::emit.
Trait Implementations§
source§impl Clone for TracingBuilder
 
impl Clone for TracingBuilder
source§fn clone(&self) -> TracingBuilder
 
fn clone(&self) -> TracingBuilder
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§impl Default for TracingBuilder
 
impl Default for TracingBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TracingBuilder
impl Send for TracingBuilder
impl Sync for TracingBuilder
impl Unpin for TracingBuilder
impl UnwindSafe for TracingBuilder
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