pub struct HttpModule;Expand description
Registers a singleton HttpService (and re-exports it). Mirror of the
pre-extraction nestrs::HttpModule shape.
Implementations§
Source§impl HttpModule
impl HttpModule
Sourcepub fn register() -> Self
pub fn register() -> Self
Install the module — registers the singleton HttpService
provider.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpModule
impl RefUnwindSafe for HttpModule
impl Send for HttpModule
impl Sync for HttpModule
impl Unpin for HttpModule
impl UnsafeUnpin for HttpModule
impl UnwindSafe for HttpModule
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