[−][src]Struct tendermint_light_node::application::LightNodeApp
LightNode Application
Trait Implementations
impl Application for LightNodeApp[src]
type Cmd = EntryPoint<LightNodeCmd>
Entrypoint command for this application.
type Cfg = LightNodeConfig
Application configuration.
type Paths = StandardPaths
Paths to resources within the application.
pub fn config(&self) -> &LightNodeConfig[src]
Accessor for application configuration.
pub fn state(&self) -> &State<Self>[src]
Borrow the application state immutably.
pub fn state_mut(&mut self) -> &mut State<Self>[src]
Borrow the application state mutably.
pub 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.
pub 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.
pub fn tracing_config(&self, command: &EntryPoint<LightNodeCmd>) -> Config[src]
Get tracing configuration from command-line options
pub fn run<I>(app_cell: &'static Cell<Lock<Self>>, args: I) where
I: IntoIterator<Item = String>, [src]
I: IntoIterator<Item = String>,
pub fn init(&mut self, command: &Self::Cmd) -> Result<(), FrameworkError>[src]
pub fn framework_components(
&mut self,
command: &Self::Cmd
) -> Result<Vec<Box<dyn Component<Self> + 'static, Global>, Global>, FrameworkError>[src]
&mut self,
command: &Self::Cmd
) -> Result<Vec<Box<dyn Component<Self> + 'static, Global>, Global>, FrameworkError>
pub fn load_config(&mut self, path: &Path) -> Result<Self::Cfg, FrameworkError>[src]
pub fn name(&self) -> &'static str[src]
pub fn description(&self) -> &'static str[src]
pub fn version(&self) -> Version[src]
pub fn authors(&self) -> Vec<String, Global>[src]
pub fn term_colors(&self, command: &Self::Cmd) -> ColorChoice[src]
pub fn handle_signal(&mut self, signal: Signal) -> Result<(), FrameworkError>[src]
pub fn shutdown(&mut self, shutdown: Shutdown) -> ![src]
impl Debug for LightNodeApp[src]
impl Default for LightNodeApp[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 LightNodeApp[src]
impl Send for LightNodeApp[src]
impl Sync for LightNodeApp[src]
impl Unpin for LightNodeApp[src]
impl !UnwindSafe for LightNodeApp[src]
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,
pub fn as_any(&self) -> &(dyn Any + 'static)[src]
pub 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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,