Trait sentry_core::SentryFutureExt
source · [−]pub trait SentryFutureExt: Sized {
fn bind_hub<H>(self, hub: H) -> SentryFuture<Self>ⓘNotable traits for SentryFuture<F>impl<F> Future for SentryFuture<F> where
F: Future, type Output = F::Output;
where
H: Into<Arc<Hub>>,
{ ... }
}
Expand description
Future extensions for Sentry.
Provided Methods
fn bind_hub<H>(self, hub: H) -> SentryFuture<Self>ⓘNotable traits for SentryFuture<F>impl<F> Future for SentryFuture<F> where
F: Future, type Output = F::Output;
where
H: Into<Arc<Hub>>,
fn bind_hub<H>(self, hub: H) -> SentryFuture<Self>ⓘNotable traits for SentryFuture<F>impl<F> Future for SentryFuture<F> where
F: Future, type Output = F::Output;
where
H: Into<Arc<Hub>>,
F: Future, type Output = F::Output;
Binds a hub to the execution of this future.
This ensures that the future is polled within the given hub.