pub struct App {
pub routes: Vec<Box<dyn Route + Send + Sync>>,
pub middleware: Vec<Box<dyn Middleware + Send + Sync>>,
pub database_interface: Box<dyn DatabaseInterface + Send + Sync>,
}Fields§
§routes: Vec<Box<dyn Route + Send + Sync>>§middleware: Vec<Box<dyn Middleware + Send + Sync>>§database_interface: Box<dyn DatabaseInterface + Send + Sync>Implementations§
Source§impl App
impl App
pub async fn handle_http_request( &self, req: Request<Body>, addr: SocketAddr, ) -> Result<Response<Body>, Infallible>
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