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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.