tokio_trace_core::callsite

Trait Callsite

Source
pub trait Callsite: Sync {
    // Required methods
    fn set_interest(&self, interest: Interest);
    fn metadata(&self) -> &Metadata<'_>;
}
Expand description

Trait implemented by callsites.

These functions are only intended to be called by the [Registry] which correctly handles determining the common interest between all subscribers.

Required Methods§

Source

fn set_interest(&self, interest: Interest)

Sets the Interest for this callsite.

Source

fn metadata(&self) -> &Metadata<'_>

Returns the metadata associated with the callsite.

Implementors§