pub struct SpringApp { /* private fields */ }Implementations§
Source§impl SpringApp
impl SpringApp
pub fn new() -> Self
pub fn with_controller(self, controller: impl Controller) -> Self
pub fn with_router(self, router: Router) -> Self
pub async fn run(self) -> Result<()>
Source§impl SpringApp
impl SpringApp
pub fn with_component<T: Send + Sync + 'static>(self, value: T) -> Self
pub fn with_discovered_components(self) -> Self
Source§impl SpringApp
impl SpringApp
pub fn with_discovered_controllers(self) -> Self
Source§impl SpringApp
impl SpringApp
pub fn with_discovered_interceptors(self) -> Self
Source§impl SpringApp
impl SpringApp
pub fn with_interceptor<I: Interceptor>(self, interceptor: I) -> Self
Source§impl SpringApp
impl SpringApp
pub fn with_discovered_advices(self) -> Self
Auto Trait Implementations§
impl Freeze for SpringApp
impl !RefUnwindSafe for SpringApp
impl Send for SpringApp
impl Sync for SpringApp
impl Unpin for SpringApp
impl !UnwindSafe for SpringApp
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