pub struct LightNodeApp { /* private fields */ }
Expand description
LightNode Application
Trait Implementations§
Source§impl Application for LightNodeApp
impl Application for LightNodeApp
Source§type Cmd = EntryPoint<LightNodeCmd>
type Cmd = EntryPoint<LightNodeCmd>
Entrypoint command for this application.
Source§type Cfg = LightNodeConfig
type Cfg = LightNodeConfig
Application configuration.
Source§type Paths = StandardPaths
type Paths = StandardPaths
Paths to resources within the application.
Source§fn config(&self) -> &LightNodeConfig
fn config(&self) -> &LightNodeConfig
Accessor for application configuration.
Source§fn register_components(
&mut self,
command: &Self::Cmd,
) -> Result<(), FrameworkError>
fn register_components( &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.
Source§fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError>
fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError>
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.
Source§fn tracing_config(&self, command: &EntryPoint<LightNodeCmd>) -> Config
fn tracing_config(&self, command: &EntryPoint<LightNodeCmd>) -> Config
Get tracing configuration from command-line options
Source§fn run<I>(app_cell: &'static Cell<Lock<Self>>, args: I)where
I: IntoIterator<Item = String>,
fn run<I>(app_cell: &'static Cell<Lock<Self>>, args: I)where
I: IntoIterator<Item = String>,
Run application with the given command-line arguments and running the
appropriate
Command
type.Source§fn init(&mut self, command: &Self::Cmd) -> Result<(), FrameworkError>
fn init(&mut self, command: &Self::Cmd) -> Result<(), FrameworkError>
Load this application’s configuration and initialize its components.
Source§fn framework_components(
&mut self,
command: &Self::Cmd,
) -> Result<Vec<Box<dyn Component<Self>>>, FrameworkError>
fn framework_components( &mut self, command: &Self::Cmd, ) -> Result<Vec<Box<dyn Component<Self>>>, FrameworkError>
Initialize the framework’s default set of components, potentially
sourcing terminal and tracing options from command line arguments.
Source§fn load_config(&mut self, path: &Path) -> Result<Self::Cfg, FrameworkError>
fn load_config(&mut self, path: &Path) -> Result<Self::Cfg, FrameworkError>
Load configuration from the given path. Read more
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of this application.
Authors of this application.
Source§fn term_colors(&self, command: &Self::Cmd) -> ColorChoice
fn term_colors(&self, command: &Self::Cmd) -> ColorChoice
Color configuration for this application.
Source§fn handle_signal(&mut self, signal: Signal) -> Result<(), FrameworkError>
fn handle_signal(&mut self, signal: Signal) -> Result<(), FrameworkError>
Handle a Unix signal received by this application
Source§impl Debug for LightNodeApp
impl Debug for LightNodeApp
Auto Trait Implementations§
impl Freeze for LightNodeApp
impl !RefUnwindSafe for LightNodeApp
impl Send for LightNodeApp
impl Sync for LightNodeApp
impl Unpin for LightNodeApp
impl !UnwindSafe for LightNodeApp
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