Trait CacheExt

Source
pub trait CacheExt:
    IsA<Cache>
    + Sealed
    + 'static {
    // Provided methods
    fn clear(&self) { ... }
    fn dump(&self) { ... }
    fn flush(&self) { ... }
    fn max_size(&self) -> u32 { ... }
    fn load(&self) { ... }
    fn set_max_size(&self, max_size: u32) { ... }
    fn cache_dir(&self) -> Option<GString> { ... }
    fn cache_type(&self) -> CacheType { ... }
}

Provided Methods§

Source

fn clear(&self)

Source

fn dump(&self)

Source

fn flush(&self)

Source

fn max_size(&self) -> u32

Source

fn load(&self)

Source

fn set_max_size(&self, max_size: u32)

Source

fn cache_dir(&self) -> Option<GString>

Source

fn cache_type(&self) -> CacheType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Cache>> CacheExt for O