#[non_exhaustive]pub struct App {
pub server: Server,
}Expand description
The application — config loaded, logger installed, server ready to start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server: ServerImplementations§
Source§impl App
impl App
Sourcepub async fn new(
env_args: &EnvArgs,
spawn_tx: Option<Sender<String>>,
includes_ansi_codes: bool,
) -> ServerResult<Self>
pub async fn new( env_args: &EnvArgs, spawn_tx: Option<Sender<String>>, includes_ansi_codes: bool, ) -> ServerResult<Self>
Construct the app.
env_args: command-line arguments (already parsed byEnvArgs::default).spawn_tx: only under thespawnfeature — a channel to forward log output to the embedding process.includes_ansi_codes: whether forwarded logs should retain ANSI colour escapes. Ignored without thespawnfeature.
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin 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