pub trait FromUnshared<Unshared> {
    // Required method
    fn from_unshared(value: Unshared) -> Self;
}
Expand description

Like the From trait, but for converting to a shared type.

See the module docs for information about shared types.

Required Methods§

source

fn from_unshared(value: Unshared) -> Self

Creates a shared type from an unshared type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> FromUnshared<T> for SharedAsyncSleep
where T: AsyncSleep + 'static,

source§

fn from_unshared(value: T) -> Self

source§

impl<T> FromUnshared<T> for SharedTimeSource
where T: TimeSource + 'static,

source§

fn from_unshared(value: T) -> Self

Implementors§

source§

impl<T> FromUnshared<T> for SharedAuthScheme
where T: AuthScheme + 'static,

source§

impl<T> FromUnshared<T> for SharedAuthSchemeOptionResolver
where T: ResolveAuthSchemeOptions + 'static,

source§

impl<T> FromUnshared<T> for SharedDnsResolver
where T: ResolveDns + 'static,

source§

impl<T> FromUnshared<T> for SharedEndpointResolver
where T: ResolveEndpoint + 'static,

source§

impl<T> FromUnshared<T> for SharedHttpClient
where T: HttpClient + 'static,

source§

impl<T> FromUnshared<T> for SharedHttpConnector
where T: HttpConnector + 'static,

source§

impl<T> FromUnshared<T> for SharedIdentityCache
where T: ResolveCachedIdentity + 'static,

source§

impl<T> FromUnshared<T> for SharedIdentityResolver
where T: ResolveIdentity + 'static,

source§

impl<T> FromUnshared<T> for SharedInterceptor
where T: Intercept + 'static,

source§

impl<T> FromUnshared<T> for SharedRetryClassifier
where T: ClassifyRetry + 'static,

source§

impl<T> FromUnshared<T> for SharedRetryStrategy
where T: RetryStrategy + 'static,

source§

impl<T> FromUnshared<T> for SharedConfigValidator
where T: ValidateConfig + 'static,

source§

impl<T> FromUnshared<T> for SharedRuntimePlugin
where T: RuntimePlugin + 'static,

source§

impl<T> FromUnshared<T> for SharedRequestSerializer
where T: SerializeRequest + 'static,

source§

impl<T> FromUnshared<T> for SharedResponseDeserializer
where T: DeserializeResponse + 'static,