Struct rustshop_env::EnvRoot
source · [−]pub struct EnvRoot { /* private fields */ }
Implementations
sourceimpl EnvRoot
impl EnvRoot
pub const ROOT_SUBDIR: &'static str = ".rustshop"
pub fn load_path() -> RootResult<PathBuf>
pub fn load() -> EnvResult<Self>
pub fn add_shop(&self, name: String, domain: String) -> EnvResult<()>
pub fn root_cfg_dir(&self) -> PathBuf
pub fn shop_yaml_path(&self) -> PathBuf
pub fn user_yaml_path(&self) -> PathBuf
pub fn context_yaml_path(&self) -> PathBuf
pub fn load_shop_cfg_opt(&self) -> EnvResult<Option<ShopCfg>>
pub fn load_user_yaml_opt(&self) -> EnvResult<Option<UserYaml>>
pub fn load_user_yaml(&self) -> EnvResult<UserYaml>
Auto Trait Implementations
impl RefUnwindSafe for EnvRoot
impl Send for EnvRoot
impl Sync for EnvRoot
impl Unpin for EnvRoot
impl UnwindSafe for EnvRoot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more