Struct mhost::app::modules::Environment
source · pub struct Environment<'a, T> {
pub run_info: RunInfo,
pub app_config: &'a AppConfig,
pub mod_config: &'a T,
pub console: Console,
pub name_builder: NameBuilder,
}
Expand description
Pass environment like configs and console access from step to step
Fields§
§run_info: RunInfo
§app_config: &'a AppConfig
§mod_config: &'a T
§console: Console
§name_builder: NameBuilder
Implementations§
source§impl<'a, T> Environment<'a, T>
impl<'a, T> Environment<'a, T>
pub fn new( app_config: &'a AppConfig, mod_config: &'a T, console: Console, name_builder: NameBuilder ) -> Environment<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for Environment<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Environment<'a, T>where
T: Sync,
impl<'a, T> Sync for Environment<'a, T>where
T: Sync,
impl<'a, T> Unpin for Environment<'a, T>
impl<'a, T> UnwindSafe for Environment<'a, T>where
T: RefUnwindSafe,
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