[][src]Trait tokio_trace_core::callsite::Callsite

pub trait Callsite: Sync {
    fn add_interest(&self, interest: Interest);
fn clear_interest(&self);
fn metadata(&self) -> &Metadata; }

Trait implemented by callsites.

Required methods

fn add_interest(&self, interest: Interest)

Adds the Interest returned by registering the callsite with a dispatcher.

If the interest is greater than or equal to the callsite's current interest, this should change whether or not the callsite is enabled.

fn clear_interest(&self)

Remove all Interest from the callsite, disabling it.

fn metadata(&self) -> &Metadata

Returns the metadata associated with the callsite.

Loading content...

Implementors

Loading content...