Struct asset_lru::AssetCacheConfigBuilder [−][src]
pub struct AssetCacheConfigBuilder { /* fields omitted */ }
Expand description
Builder for AssetCacheConfig
.
Implementations
Maximum cost of the bytes cache in bytes.
Maximum cost of the decoded cache in bytes.
Maximum size of a single vec of bytes before we won’t cache it.
Use this to avoid caching huge objects.
Point at which we will avoid caching individual decoded objects.
For example maybe your audio file is 50mb when decoded, and you’d like to not keep it around.
Note that even when we choose not to cache such objects, we still keep them around via weak references, so it’s not always the case that the cache will refuse to give it back to you without decoding a second time.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AssetCacheConfigBuilder
impl Send for AssetCacheConfigBuilder
impl Sync for AssetCacheConfigBuilder
impl Unpin for AssetCacheConfigBuilder
impl UnwindSafe for AssetCacheConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more