TLSubscriberExt

Trait TLSubscriberExt 

Source
pub trait TLSubscriberExt: Sized {
    // Required method
    async fn with_tracing_lv<D>(
        self,
        dst: D,
        app_info: TLAppInfo,
        setting: TLSetting,
    ) -> Result<(Layered<TLLayer<Box<dyn TracingLiveMsgSubscriber>>, Self>, impl Future<Output = ()> + Send + 'static, TLGuard), Status>
       where D: TonicTryConnect;

    // Provided method
    async fn tracing_lv_init<D, U, F: Future<Output = U> + 'static>(
        self,
        dst: D,
        app_info: TLAppInfo,
        setting: TLSetting,
        f: impl FnOnce() -> F,
    ) -> Result<U, Status>
       where D: TonicTryConnect,
             Layered<TLLayer<Box<dyn TracingLiveMsgSubscriber>>, Self>: Into<Dispatch> { ... }
}

Required Methods§

Source

async fn with_tracing_lv<D>( self, dst: D, app_info: TLAppInfo, setting: TLSetting, ) -> Result<(Layered<TLLayer<Box<dyn TracingLiveMsgSubscriber>>, Self>, impl Future<Output = ()> + Send + 'static, TLGuard), Status>
where D: TonicTryConnect,

Provided Methods§

Source

async fn tracing_lv_init<D, U, F: Future<Output = U> + 'static>( self, dst: D, app_info: TLAppInfo, setting: TLSetting, f: impl FnOnce() -> F, ) -> Result<U, Status>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> TLSubscriberExt for T
where T: SubscriberExt + for<'a> LookupSpan<'a>,