Struct zebrad::application::ZebradApp[][src]

pub struct ZebradApp { /* fields omitted */ }

Zebrad Application


impl ZebradApp[src]

pub fn git_commit() -> Option<&'static str>[src]

Returns the git commit for this build, if available.


If the user makes changes, but does not commit them, the git commit will not match the compiled source code.

Trait Implementations

impl Application for ZebradApp[src]

type Cmd = EntryPoint<ZebradCmd>

Entrypoint command for this application.

type Cfg = ZebradConfig

Application configuration.

type Paths = StandardPaths

Paths to resources within the application.

fn config(&self) -> &ZebradConfig[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 framework_components(
    &mut self,
    command: &Self::Cmd
) -> Result<Vec<Box<dyn Component<Self>>>, FrameworkError>

Returns the framework components used by this application.

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.

fn init(&mut self, command: &Self::Cmd) -> Result<(), FrameworkError>[src]

Load this application’s configuration and initialize its components.

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.

impl Debug for ZebradApp[src]

impl Default for ZebradApp[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 ZebradApp

impl Send for ZebradApp

impl Sync for ZebradApp

impl Unpin for ZebradApp

impl !UnwindSafe for ZebradApp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<D> OwoColorize for D

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]

impl<T> Erased for T