sentry

Trait SentryFutureExt

Source
pub trait SentryFutureExt: Sized {
    // Provided method
    fn bind_hub<H>(self, hub: H) -> SentryFuture<Self> 
       where H: Into<Arc<Hub>> { ... }
}
Expand description

Future extensions for Sentry.

Provided Methods§

Source

fn bind_hub<H>(self, hub: H) -> SentryFuture<Self>
where H: Into<Arc<Hub>>,

Binds a hub to the execution of this future.

This ensures that the future is polled within the given hub.

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<F> SentryFutureExt for F
where F: Future,