pub struct DynLoader { /* private fields */ }Implementations§
Source§impl DynLoader
impl DynLoader
pub fn new(source: Box<dyn Source>, formats: Vec<AnyFormat>) -> Self
pub fn builder() -> DynLoaderBuilder
Sourcepub async fn load<T>(&self, base_name: &str) -> LoadResult<T>
pub async fn load<T>(&self, base_name: &str) -> LoadResult<T>
Automatically detects and loads the configuration based on registered formats.
Sourcepub async fn load_file<T>(&self, path: &str) -> LoadResult<T>
pub async fn load_file<T>(&self, path: &str) -> LoadResult<T>
Directly loads a specific path, selecting parser by extension.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynLoader
impl !RefUnwindSafe for DynLoader
impl Send for DynLoader
impl Sync for DynLoader
impl Unpin for DynLoader
impl !UnwindSafe for DynLoader
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