pub struct CanvasCacheTuning {
pub keep_frames: u64,
pub max_entries: usize,
}Expand description
Cache tuning for a single hosted resource kind (text/path/svg) within a declarative Canvas.
Fields§
§keep_frames: u64How long an unused entry may remain cached (in UI frames).
max_entries: usizeHard cap on cached entries for this resource kind.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasCacheTuning
impl Clone for CanvasCacheTuning
Source§fn clone(&self) -> CanvasCacheTuning
fn clone(&self) -> CanvasCacheTuning
Returns a duplicate of the value. Read more
1.0.0 · 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 CanvasCacheTuning
impl Debug for CanvasCacheTuning
Source§impl PartialEq for CanvasCacheTuning
impl PartialEq for CanvasCacheTuning
impl Copy for CanvasCacheTuning
impl Eq for CanvasCacheTuning
impl StructuralPartialEq for CanvasCacheTuning
Auto Trait Implementations§
impl Freeze for CanvasCacheTuning
impl RefUnwindSafe for CanvasCacheTuning
impl Send for CanvasCacheTuning
impl Sync for CanvasCacheTuning
impl Unpin for CanvasCacheTuning
impl UnsafeUnpin for CanvasCacheTuning
impl UnwindSafe for CanvasCacheTuning
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