pub struct RuntimeComponents { /* private fields */ }
Expand description
Components that can only be set in runtime plugins that the orchestrator uses directly to call an operation.
Implementations§
source§impl RuntimeComponents
impl RuntimeComponents
sourcepub fn builder(name: &'static str) -> RuntimeComponentsBuilder
pub fn builder(name: &'static str) -> RuntimeComponentsBuilder
Returns a builder for runtime components.
sourcepub fn to_builder(&self) -> RuntimeComponentsBuilder
pub fn to_builder(&self) -> RuntimeComponentsBuilder
Clones and converts this RuntimeComponents
into a RuntimeComponentsBuilder
.
sourcepub fn auth_scheme_option_resolver(&self) -> SharedAuthSchemeOptionResolver
pub fn auth_scheme_option_resolver(&self) -> SharedAuthSchemeOptionResolver
Returns the auth scheme option resolver.
sourcepub fn http_client(&self) -> Option<SharedHttpClient>
pub fn http_client(&self) -> Option<SharedHttpClient>
Returns the HTTP client.
sourcepub fn endpoint_resolver(&self) -> SharedEndpointResolver
pub fn endpoint_resolver(&self) -> SharedEndpointResolver
Returns the endpoint resolver.
sourcepub fn auth_scheme(&self, scheme_id: AuthSchemeId) -> Option<SharedAuthScheme>
pub fn auth_scheme(&self, scheme_id: AuthSchemeId) -> Option<SharedAuthScheme>
Returns the requested auth scheme if it is set.
sourcepub fn identity_cache(&self) -> SharedIdentityCache
pub fn identity_cache(&self) -> SharedIdentityCache
Returns the identity cache.
sourcepub fn interceptors(&self) -> impl Iterator<Item = SharedInterceptor> + '_
pub fn interceptors(&self) -> impl Iterator<Item = SharedInterceptor> + '_
Returns an iterator over the interceptors.
sourcepub fn retry_classifiers(
&self,
) -> impl Iterator<Item = SharedRetryClassifier> + '_
pub fn retry_classifiers( &self, ) -> impl Iterator<Item = SharedRetryClassifier> + '_
Returns an iterator over the retry classifiers.
sourcepub fn retry_strategy(&self) -> SharedRetryStrategy
pub fn retry_strategy(&self) -> SharedRetryStrategy
Returns the retry strategy.
sourcepub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
pub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
Returns the async sleep implementation.
sourcepub fn time_source(&self) -> Option<SharedTimeSource>
pub fn time_source(&self) -> Option<SharedTimeSource>
Returns the time source.
sourcepub fn config_validators(
&self,
) -> impl Iterator<Item = SharedConfigValidator> + '_
pub fn config_validators( &self, ) -> impl Iterator<Item = SharedConfigValidator> + '_
Returns the config validators.
Trait Implementations§
source§impl Clone for RuntimeComponents
impl Clone for RuntimeComponents
source§fn clone(&self) -> RuntimeComponents
fn clone(&self) -> RuntimeComponents
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuntimeComponents
impl Debug for RuntimeComponents
source§impl GetIdentityResolver for RuntimeComponents
impl GetIdentityResolver for RuntimeComponents
source§fn identity_resolver(
&self,
scheme_id: AuthSchemeId,
) -> Option<SharedIdentityResolver>
fn identity_resolver( &self, scheme_id: AuthSchemeId, ) -> Option<SharedIdentityResolver>
Returns the requested identity resolver if it is set.
Auto Trait Implementations§
impl Freeze for RuntimeComponents
impl !RefUnwindSafe for RuntimeComponents
impl Send for RuntimeComponents
impl Sync for RuntimeComponents
impl Unpin for RuntimeComponents
impl !UnwindSafe for RuntimeComponents
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.