pub struct PaletteCache { /* private fields */ }Implementations§
Source§impl PaletteCache
impl PaletteCache
pub fn new(freshness: Duration) -> Self
pub fn catalog_from_code_mode( &mut self, catalog: &CodeModeCatalog, now: Instant, ) -> PaletteCatalog
pub fn set_schema(&mut self, id: impl Into<String>, schema: Value)
pub fn schema(&self, id: &str) -> Result<Value, PaletteError>
pub fn reprobe_count(&self) -> usize
Trait Implementations§
Source§impl Clone for PaletteCache
impl Clone for PaletteCache
Source§fn clone(&self) -> PaletteCache
fn clone(&self) -> PaletteCache
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 moreAuto Trait Implementations§
impl Freeze for PaletteCache
impl RefUnwindSafe for PaletteCache
impl Send for PaletteCache
impl Sync for PaletteCache
impl Unpin for PaletteCache
impl UnsafeUnpin for PaletteCache
impl UnwindSafe for PaletteCache
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