pub struct BootContext { /* private fields */ }Implementations§
Source§impl BootContext
impl BootContext
pub fn new(profile: Arc<LoadedProfile>, secrets: Arc<SecretsService>) -> Self
pub fn profile(&self) -> &Profile
pub fn loaded_profile(&self) -> &Arc<LoadedProfile> ⓘ
pub fn profile_path(&self) -> &Path
pub fn secrets(&self) -> &Arc<SecretsService> ⓘ
pub fn config(&self) -> Result<&Arc<Config>, GlobalConfigError>
pub fn is_config_initialized(&self) -> bool
pub fn try_init_config( &self, services_root: Option<&Path>, ) -> ConfigResult<&Arc<Config>>
pub fn install_config(&self, config: Config) -> ConfigResult<&Arc<Config>>
pub fn services_root(&self) -> Option<&ActiveServicesRoot>
pub fn require_services_root(&self) -> ActiveServicesRoot
pub fn install_services_root( &self, root: ActiveServicesRoot, ) -> &ActiveServicesRoot
pub async fn try_resolve_services_root( &self, core_version: &str, ) -> BundleResult<&ActiveServicesRoot>
pub fn load_services_config(&self) -> ConfigLoadResult<ServicesConfig>
pub fn config_loader(&self) -> ConfigLoader
Trait Implementations§
Source§impl Clone for BootContext
impl Clone for BootContext
Auto Trait Implementations§
impl !RefUnwindSafe for BootContext
impl !UnwindSafe for BootContext
impl Freeze for BootContext
impl Send for BootContext
impl Sync for BootContext
impl Unpin for BootContext
impl UnsafeUnpin for BootContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more