pub struct CacheOptions {
pub max_bytes: u64,
pub secure_permissions: bool,
}Expand description
Configuration for one bounded update cache.
Fields§
§max_bytes: u64Maximum aggregate bytes occupied by cache objects, descriptors and parts.
secure_permissions: boolApplies the current owner-only directory profile where supported.
Implementations§
Source§impl CacheOptions
impl CacheOptions
Sourcepub fn new(max_bytes: u64, secure_permissions: bool) -> UpdateResult<Self>
pub fn new(max_bytes: u64, secure_permissions: bool) -> UpdateResult<Self>
Creates validated cache options.
Trait Implementations§
Source§impl Clone for CacheOptions
impl Clone for CacheOptions
impl Copy for CacheOptions
Source§impl Debug for CacheOptions
impl Debug for CacheOptions
impl Eq for CacheOptions
Source§impl PartialEq for CacheOptions
impl PartialEq for CacheOptions
impl StructuralPartialEq for CacheOptions
Auto Trait Implementations§
impl Freeze for CacheOptions
impl RefUnwindSafe for CacheOptions
impl Send for CacheOptions
impl Sync for CacheOptions
impl Unpin for CacheOptions
impl UnsafeUnpin for CacheOptions
impl UnwindSafe for CacheOptions
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