pub struct RuntimePlugins { /* private fields */ }
Available on crate feature
client
only.Expand description
Used internally in the orchestrator implementation and in the generated code. Not intended to be used elsewhere.
Implementations§
Source§impl RuntimePlugins
impl RuntimePlugins
Sourcepub fn with_client_plugins(
self,
plugins: impl IntoIterator<Item = SharedRuntimePlugin>,
) -> Self
pub fn with_client_plugins( self, plugins: impl IntoIterator<Item = SharedRuntimePlugin>, ) -> Self
Add several client-level runtime plugins from an iterator.
Sourcepub fn with_client_plugin(self, plugin: impl RuntimePlugin + 'static) -> Self
pub fn with_client_plugin(self, plugin: impl RuntimePlugin + 'static) -> Self
Adds a client-level runtime plugin.
Sourcepub fn with_operation_plugins(
self,
plugins: impl IntoIterator<Item = SharedRuntimePlugin>,
) -> Self
pub fn with_operation_plugins( self, plugins: impl IntoIterator<Item = SharedRuntimePlugin>, ) -> Self
Add several operation-level runtime plugins from an iterator.
Sourcepub fn with_operation_plugin(self, plugin: impl RuntimePlugin + 'static) -> Self
pub fn with_operation_plugin(self, plugin: impl RuntimePlugin + 'static) -> Self
Adds an operation-level runtime plugin.
Sourcepub fn apply_client_configuration(
&self,
cfg: &mut ConfigBag,
) -> Result<RuntimeComponentsBuilder, BoxError>
pub fn apply_client_configuration( &self, cfg: &mut ConfigBag, ) -> Result<RuntimeComponentsBuilder, BoxError>
Apply the client-level runtime plugins’ config to the given config bag.
Sourcepub fn apply_operation_configuration(
&self,
cfg: &mut ConfigBag,
) -> Result<RuntimeComponentsBuilder, BoxError>
pub fn apply_operation_configuration( &self, cfg: &mut ConfigBag, ) -> Result<RuntimeComponentsBuilder, BoxError>
Apply the operation-level runtime plugins’ config to the given config bag.
Trait Implementations§
Source§impl Clone for RuntimePlugins
impl Clone for RuntimePlugins
Source§fn clone(&self) -> RuntimePlugins
fn clone(&self) -> RuntimePlugins
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 RuntimePlugins
impl Debug for RuntimePlugins
Source§impl Default for RuntimePlugins
impl Default for RuntimePlugins
Source§fn default() -> RuntimePlugins
fn default() -> RuntimePlugins
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimePlugins
impl !RefUnwindSafe for RuntimePlugins
impl Send for RuntimePlugins
impl Sync for RuntimePlugins
impl Unpin for RuntimePlugins
impl !UnwindSafe for RuntimePlugins
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.