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§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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.