pub trait FutureExt {
// Provided methods
fn with_personality(self, personality: u16) -> WithPersonality<Self> ⓘ
where Self: Sized { ... }
fn with_cancel(self, token: CancelToken) -> WithCancel<Self> ⓘ
where Self: Sized { ... }
}Available on crate features
runtime and future-combinator only.Expand description
Extension trait for futures.
Provided Methods§
Sourcefn with_personality(self, personality: u16) -> WithPersonality<Self> ⓘwhere
Self: Sized,
fn with_personality(self, personality: u16) -> WithPersonality<Self> ⓘwhere
Self: Sized,
Sets the personality for this future.
Sourcefn with_cancel(self, token: CancelToken) -> WithCancel<Self> ⓘwhere
Self: Sized,
fn with_cancel(self, token: CancelToken) -> WithCancel<Self> ⓘwhere
Self: Sized,
Sets the cancel token for this future.