pub struct SchemaCache { /* private fields */ }Expand description
Cache for schemas with automatic expiration
Implementations§
Source§impl SchemaCache
impl SchemaCache
Sourcepub fn invalidate(&self, stype: &str)
pub fn invalidate(&self, stype: &str)
Invalidate a schema
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaCache
impl !RefUnwindSafe for SchemaCache
impl Send for SchemaCache
impl Sync for SchemaCache
impl Unpin for SchemaCache
impl !UnwindSafe for SchemaCache
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