pub struct App { /* private fields */ }Expand description
app
Implementations§
Source§impl App
impl App
Sourcepub async fn new(
env_args: EnvArgs,
spawn_tx: Option<Sender<String>>,
includes_ansi_codes: bool,
) -> Self
pub async fn new( env_args: EnvArgs, spawn_tx: Option<Sender<String>>, includes_ansi_codes: bool, ) -> Self
create new app
- listener_port_to_overwrite: ignores port in config toml. used in both arguments and tests
Sourcepub fn config_url_paths(&self) -> Option<ConfigUrlPaths>
pub fn config_url_paths(&self) -> Option<ConfigUrlPaths>
get [url.paths] in config
Sourcepub fn config_url_paths_patterns(
&self,
) -> Option<ConfigUrlPathsJsonpathPatterns>
pub fn config_url_paths_patterns( &self, ) -> Option<ConfigUrlPathsJsonpathPatterns>
get [url.paths_patterns] in config
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