pub struct LocalPath { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocalPath
impl<'de> Deserialize<'de> for LocalPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnvEvaluable<LocalPath> for LocalPath
impl EnvEvaluable<LocalPath> for LocalPath
impl StructuralPartialEq for LocalPath
Auto Trait Implementations§
impl Freeze for LocalPath
impl RefUnwindSafe for LocalPath
impl Send for LocalPath
impl Sync for LocalPath
impl Unpin for LocalPath
impl UnsafeUnpin for LocalPath
impl UnwindSafe for LocalPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_conf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> ConfigLifecycle for T
impl<T> ConfigLifecycle for T
Source§fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
强制加载配置文件
Source§fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
初始化配置文件
Source§fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
安全清理配置文件