pub enum Order {
Defaults,
Overrides,
NestedComponents,
}
Available on crate feature
client
only.Expand description
Runtime plugin ordering.
There are two runtime plugin “levels” that run in the following order:
- Service runtime plugins - runtime plugins that pertain to the entire service.
- Operation runtime plugins - runtime plugins relevant only to a single operation.
This enum is used to determine runtime plugin order within those levels.
Variants§
Defaults
Runtime plugins with Defaults
order are executed first within their level.
Runtime plugins with this order should only be used for registering default components and config.
Overrides
Runtime plugins with Overrides
order are executed after Defaults
within their level.
This is the default order.
NestedComponents
Runtime plugins with NestedComponents
order are executed after Overrides
within their level.
This level is intended to be used for wrapping components configured in previous runtime plugins.
Trait Implementations§
Source§impl Ord for Order
impl Ord for Order
Source§impl PartialOrd for Order
impl PartialOrd for Order
impl Copy for Order
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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.