pub struct App {
pub config: ServerConfig,
/* private fields */
}
Fields§
§config: ServerConfig
Implementations§
Source§impl App
impl App
pub fn new(config: ServerConfig, router: Router) -> Self
pub fn from_config(config: ServerConfig) -> Self
pub fn with_config(self, config: ServerConfig) -> Self
pub async fn run(self) -> bool
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 !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