pub struct App {
pub server: Server,
}Expand description
The application — config loaded, logger installed, server ready to start.
Fields§
§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 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