pub trait JoinSetProvider:
Clone
+ Send
+ Sync
+ 'static {
type JoinSet<T: Send + Sync + 'static>: JoinSet<T>;
// Required method
fn new_join_set<T>(&self) -> Self::JoinSet<T>
where T: Send + Sync + 'static;
}Expand description
Trait for a runtime that can create JoinSets.
Required Associated Types§
Required Methods§
Sourcefn new_join_set<T>(&self) -> Self::JoinSet<T>
fn new_join_set<T>(&self) -> Self::JoinSet<T>
Create a new JoinSet for use with this runtime.
Important: the resulting JoinSet should only be used
from the context of the runtime it was created for.
Using the JoinSet with a different runtime can lead to panics,
or erroneous behavior.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl JoinSetProvider for AsyncStd
Available on crate feature async-std and (crate features async-std or smol or tokio) and (crate features native-tls or rustls) only.
impl JoinSetProvider for AsyncStd
Available on crate feature
async-std and (crate features async-std or smol or tokio) and (crate features native-tls or rustls) only.Implementors§
Source§impl JoinSetProvider for AsyncStdNativeTlsRuntime
Available on crate feature async-std and (crate features native-tls or rustls) only.
impl JoinSetProvider for AsyncStdNativeTlsRuntime
Available on crate feature
async-std and (crate features native-tls or rustls) only.type JoinSet<T: Send + Sync + 'static> = <CompoundRuntime<AsyncStd, AsyncStd, RealCoarseTimeProvider, AsyncStd, AsyncStd, NativeTlsProvider, AsyncStd> as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for AsyncStdRustlsRuntime
Available on crate feature async-std and (crate features native-tls or rustls) only.
impl JoinSetProvider for AsyncStdRustlsRuntime
Available on crate feature
async-std and (crate features native-tls or rustls) only.type JoinSet<T: Send + Sync + 'static> = <CompoundRuntime<AsyncStd, AsyncStd, RealCoarseTimeProvider, AsyncStd, AsyncStd, RustlsProvider, AsyncStd> as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for PreferredRuntime
impl JoinSetProvider for PreferredRuntime
type JoinSet<T: Send + Sync + 'static> = <TokioNativeTlsRuntime as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for SmolNativeTlsRuntime
Available on crate feature smol and (crate features native-tls or rustls) only.
impl JoinSetProvider for SmolNativeTlsRuntime
Available on crate feature
smol and (crate features native-tls or rustls) only.type JoinSet<T: Send + Sync + 'static> = <CompoundRuntime<SmolRuntime, SmolRuntime, RealCoarseTimeProvider, SmolRuntime, SmolRuntime, NativeTlsProvider, SmolRuntime> as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for SmolRustlsRuntime
Available on crate feature smol and (crate features native-tls or rustls) only.
impl JoinSetProvider for SmolRustlsRuntime
Available on crate feature
smol and (crate features native-tls or rustls) only.type JoinSet<T: Send + Sync + 'static> = <CompoundRuntime<SmolRuntime, SmolRuntime, RealCoarseTimeProvider, SmolRuntime, SmolRuntime, RustlsProvider, SmolRuntime> as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for TokioNativeTlsRuntime
Available on crate feature tokio and (crate features native-tls or rustls) only.
impl JoinSetProvider for TokioNativeTlsRuntime
Available on crate feature
tokio and (crate features native-tls or rustls) only.type JoinSet<T: Send + Sync + 'static> = <CompoundRuntime<TokioRuntimeHandle, TokioRuntimeHandle, RealCoarseTimeProvider, TokioRuntimeHandle, TokioRuntimeHandle, NativeTlsProvider, TokioRuntimeHandle> as JoinSetProvider>::JoinSet<T>
Source§impl JoinSetProvider for TokioRustlsRuntime
Available on crate feature tokio and (crate features native-tls or rustls) only.
impl JoinSetProvider for TokioRustlsRuntime
Available on crate feature
tokio and (crate features native-tls or rustls) only.