pub struct FrameworkExtension;Expand description
DI extension for the framework package key.
Applies framework package parameters, registers an empty RouteCollection
as ROUTER_SERVICE, registers built-in console commands, and adds
RegisterDefaultMailerPass / RegisterDefaultNotifierPass /
RegisterDefaultHttpClientPass /
RegisterDefaultLockPass / RegisterDefaultRateLimiterPass /
RegisterDefaultSchedulerPass so apps resolve mailer, notifier,
lock.store, rate_limiter.storage, and scheduler unless they replace
them. The mailer uses a null transport; http_client is only registered
when serenade-http-client/reqwest is explicitly enabled. The root config,
event dispatcher, and console
application are registered by crate::build_container.
§Panics
Panics if a built-in console command id is already registered on builder.
Trait Implementations§
Source§impl Clone for FrameworkExtension
impl Clone for FrameworkExtension
Source§fn clone(&self) -> FrameworkExtension
fn clone(&self) -> FrameworkExtension
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FrameworkExtension
Source§impl Debug for FrameworkExtension
impl Debug for FrameworkExtension
Source§impl Default for FrameworkExtension
impl Default for FrameworkExtension
Source§fn default() -> FrameworkExtension
fn default() -> FrameworkExtension
Source§impl Extension for FrameworkExtension
impl Extension for FrameworkExtension
Auto Trait Implementations§
impl Forget for FrameworkExtension
impl Freeze for FrameworkExtension
impl Move for FrameworkExtension
impl RefUnwindSafe for FrameworkExtension
impl Send for FrameworkExtension
impl Sync for FrameworkExtension
impl Unpin for FrameworkExtension
impl UnsafeUnpin for FrameworkExtension
impl UnwindSafe for FrameworkExtension
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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 more