pub struct StaticRuntimePlugin { /* private fields */ }
Available on crate feature
client
only.Expand description
Runtime plugin that simply returns the config and components given at construction time.
Implementations§
source§impl StaticRuntimePlugin
impl StaticRuntimePlugin
sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new StaticRuntimePlugin
.
sourcepub fn with_config(self, config: FrozenLayer) -> Self
pub fn with_config(self, config: FrozenLayer) -> Self
Changes the config.
sourcepub fn with_runtime_components(
self,
runtime_components: RuntimeComponentsBuilder,
) -> Self
pub fn with_runtime_components( self, runtime_components: RuntimeComponentsBuilder, ) -> Self
Changes the runtime components.
sourcepub fn with_order(self, order: Order) -> Self
pub fn with_order(self, order: Order) -> Self
Changes the order of this runtime plugin.
Trait Implementations§
source§impl Debug for StaticRuntimePlugin
impl Debug for StaticRuntimePlugin
source§impl Default for StaticRuntimePlugin
impl Default for StaticRuntimePlugin
source§fn default() -> StaticRuntimePlugin
fn default() -> StaticRuntimePlugin
Returns the “default value” for a type. Read more
source§impl RuntimePlugin for StaticRuntimePlugin
impl RuntimePlugin for StaticRuntimePlugin
source§fn config(&self) -> Option<FrozenLayer>
fn config(&self) -> Option<FrozenLayer>
source§fn runtime_components(
&self,
_current_components: &RuntimeComponentsBuilder,
) -> Cow<'_, RuntimeComponentsBuilder>
fn runtime_components( &self, _current_components: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeComponentsBuilder>
Returns a
RuntimeComponentsBuilder
to incorporate into the final runtime components. Read moreAuto Trait Implementations§
impl Freeze for StaticRuntimePlugin
impl !RefUnwindSafe for StaticRuntimePlugin
impl Send for StaticRuntimePlugin
impl Sync for StaticRuntimePlugin
impl Unpin for StaticRuntimePlugin
impl !UnwindSafe for StaticRuntimePlugin
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
§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.