pub struct ProviderCache { /* private fields */ }Expand description
Lightweight cache that will be backed by a file watcher once implemented.
Implementations§
Source§impl ProviderCache
impl ProviderCache
pub fn new() -> Self
Sourcepub fn load_or_read(&self, provider_path: &Path) -> Result<ProviderSpec>
pub fn load_or_read(&self, provider_path: &Path) -> Result<ProviderSpec>
Read and cache the provider spec, updating the entry if it has changed.
Trait Implementations§
Source§impl Clone for ProviderCache
impl Clone for ProviderCache
Source§fn clone(&self) -> ProviderCache
fn clone(&self) -> ProviderCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderCache
impl Debug for ProviderCache
Auto Trait Implementations§
impl Freeze for ProviderCache
impl RefUnwindSafe for ProviderCache
impl Send for ProviderCache
impl Sync for ProviderCache
impl Unpin for ProviderCache
impl UnsafeUnpin for ProviderCache
impl UnwindSafe for ProviderCache
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