pub struct Load { /* private fields */ }Implementations§
Source§impl Load
impl Load
pub fn new() -> Self
pub fn with_db(self, client: Arc<dyn DbClient>) -> Self
pub fn with_kvs(self, client: Arc<dyn KVSClient>) -> Self
pub fn with_in_memory(self, client: Arc<dyn InMemoryClient>) -> Self
pub fn with_env(self, client: Arc<dyn EnvClient>) -> Self
pub fn with_http(self, client: Arc<dyn HttpClient>) -> Self
pub fn with_file(self, client: Arc<dyn FileClient>) -> Self
pub fn handle( &self, config: &HashMap<String, Value>, ) -> Result<Value, LoadError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Load
impl !RefUnwindSafe for Load
impl Send for Load
impl Sync for Load
impl Unpin for Load
impl UnsafeUnpin for Load
impl !UnwindSafe for Load
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