pub struct StaticRuntimePlugin { /* private fields */ }
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>
Creates a shared type from an unshared type.