[−][src]Struct delphi::application::DelphiApp
Delphi Application
Trait Implementations
impl Application for DelphiApp
[src]
type Cmd = EntryPoint<DelphiCmd>
Entrypoint command for this application.
type Cfg = DelphiConfig
Application configuration.
type Paths = StandardPaths
Paths to resources within the application.
fn config(&self) -> &DelphiConfig
[src]
Accessor for application configuration.
fn state(&self) -> &State<Self>
[src]
Borrow the application state immutably.
fn state_mut(&mut self) -> &mut State<Self>
[src]
Borrow the application state mutably.
fn register_components(
&mut self,
command: &Self::Cmd
) -> Result<(), FrameworkError>
[src]
&mut self,
command: &Self::Cmd
) -> Result<(), FrameworkError>
Register all components used by this application.
If you would like to add additional components to your application beyond the default ones provided by the framework, this is the place to do so.
fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError>
[src]
Post-configuration lifecycle callback.
Called regardless of whether config is loaded to indicate this is the time in app lifecycle when configuration would be loaded if possible.
fn tracing_config(&self, command: &EntryPoint<DelphiCmd>) -> Config
[src]
Get tracing configuration from command-line options
fn run<I>(app_cell: &'static Cell<Lock<Self>>, args: I) where
I: IntoIterator<Item = String>,
[src]
I: IntoIterator<Item = String>,
fn init(&mut self, command: &Self::Cmd) -> Result<(), FrameworkError>
[src]
fn framework_components(
&mut self,
command: &Self::Cmd
) -> Result<Vec<Box<dyn Component<Self> + 'static>>, FrameworkError>
[src]
&mut self,
command: &Self::Cmd
) -> Result<Vec<Box<dyn Component<Self> + 'static>>, FrameworkError>
fn load_config(&mut self, path: &Path) -> Result<Self::Cfg, FrameworkError>
[src]
fn name(&self) -> &'static str
[src]
fn description(&self) -> &'static str
[src]
fn version(&self) -> Version
[src]
fn authors(&self) -> Vec<String>
[src]
fn term_colors(&self, command: &Self::Cmd) -> ColorChoice
[src]
fn handle_signal(&mut self, signal: Signal) -> Result<(), FrameworkError>
[src]
fn shutdown(&mut self, shutdown: Shutdown) -> !
[src]
impl Debug for DelphiApp
[src]
impl Default for DelphiApp
[src]
Initialize a new application instance.
By default no configuration is loaded, and the framework state is initialized to a default, empty state (no components, threads, etc).
Auto Trait Implementations
impl !RefUnwindSafe for DelphiApp
impl Send for DelphiApp
impl Sync for DelphiApp
impl Unpin for DelphiApp
impl !UnwindSafe for DelphiApp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,