[−][src]Struct sentry::Future
A future that binds a Hub
to its execution.
This activates the given hub for the duration of the inner futures poll
method. Users usually do not need to construct this type manually, but
rather use the FutureExt::bind_hub
method instead.
Implementations
impl<F> SentryFuture<F>
[src][−]
pub fn new(hub: Arc<Hub>, future: F) -> SentryFuture<F>
[src][−]
Creates a new bound future with a Hub
.
Trait Implementations
impl<F> Debug for SentryFuture<F> where
F: Debug,
[src][+]
F: Debug,
impl<F> Future for SentryFuture<F> where
F: Future,
[src][+]
F: Future,
Auto Trait Implementations
impl<F> RefUnwindSafe for SentryFuture<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for SentryFuture<F> where
F: Send,
F: Send,
impl<F> Sync for SentryFuture<F> where
F: Sync,
F: Sync,
impl<F> Unpin for SentryFuture<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for SentryFuture<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<F> FutureExt for F where
F: Future,
[src][+]
F: Future,
impl<T> FutureExt for T where
T: Future + ?Sized,
[src][+]
T: Future + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src][+]
F: Future<Output = Result<T, E>> + ?Sized,
impl<Fut> TryFutureExt for Fut where
Fut: TryFuture + ?Sized,
[src][+]
Fut: TryFuture + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,