pub struct ConfigVirtualFileSystem { /* private fields */ }
Expand description
An implementation of loader from the CNode structure.
Implementations§
Trait Implementations§
Source§impl ConfigLoaderSource for ConfigVirtualFileSystem
impl ConfigLoaderSource for ConfigVirtualFileSystem
Source§fn read_file(&self, path: &Path, _dynenv_name: &str) -> Result<String, String>
fn read_file(&self, path: &Path, _dynenv_name: &str) -> Result<String, String>
Reads file located on the
path
and attempts to use the serializator title to
load the config file. Read moreSource§fn read_raw_file(&self, path: &Path) -> Result<String, String>
fn read_raw_file(&self, path: &Path) -> Result<String, String>
Reads a content of the file without performing any deserialization or parsing. Read more
Source§fn get_serializator(
&self,
serial_name: &str,
) -> Result<Arc<DynEnvironment>, String>
fn get_serializator( &self, serial_name: &str, ) -> Result<Arc<DynEnvironment>, String>
Returns the cloned dynamic serializator instance.
Auto Trait Implementations§
impl Freeze for ConfigVirtualFileSystem
impl RefUnwindSafe for ConfigVirtualFileSystem
impl Send for ConfigVirtualFileSystem
impl Sync for ConfigVirtualFileSystem
impl Unpin for ConfigVirtualFileSystem
impl UnwindSafe for ConfigVirtualFileSystem
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