pub struct App {}Implementations§
Source§impl App
impl App
Sourcepub fn handle_request(request: Request) -> (Response, Request)
pub fn handle_request(request: Request) -> (Response, Request)
Dispatch request through the controller chain and return the response.
This is a convenience wrapper over Application::execute that uses a
synthetic loopback ConnectionInfo. Use it in tests or when no real
connection context is available. Prefer TestClient for structured
test code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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