Skip to main content

ConfStdOperation

Trait ConfStdOperation 

Source
pub trait ConfStdOperation {
    // Required methods
    fn load(path: &str, dict: &EnvDict) -> OrionConfResult<Self>
       where Self: Sized;
    fn init(path: &str) -> OrionConfResult<Self>
       where Self: Sized;
    fn safe_clean(path: &str) -> OrionConfResult<()>;

    // Provided method
    fn try_load(path: &str, dict: &EnvDict) -> OrionConfResult<Option<Self>>
       where Self: Sized { ... }
}
Expand description

统一的配置对象操作接口

Required Methods§

Source

fn load(path: &str, dict: &EnvDict) -> OrionConfResult<Self>
where Self: Sized,

Source

fn init(path: &str) -> OrionConfResult<Self>
where Self: Sized,

Source

fn safe_clean(path: &str) -> OrionConfResult<()>

Provided Methods§

Source

fn try_load(path: &str, dict: &EnvDict) -> OrionConfResult<Option<Self>>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§