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
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.