pub enum CacheDatabaseOperation {
Clear,
Invalidate,
Pack,
Reset,
Unknown(u32),
}Expand description
A maintenance action on a runtime’s cache database.
The cache database is the file that RuntimeOptions::cache_path names. It
holds the ambient cache, meaning the resources that maps loaded, and the
offline regions.
See mln_cache_database_operation in the
C API reference.
Variants§
Clear
Deletes the ambient cache’s resources and frees the space they used. Offline regions keep their resources.
Invalidate
Keeps the ambient cache’s resources, but makes maps check each one with the server before they use it again. Offline regions keep their resources as they are.
Pack
Compacts the whole database file to free the disk space that it no longer uses.
Reset
Deletes the whole database, offline regions included, and starts an empty one.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for CacheDatabaseOperation
impl Clone for CacheDatabaseOperation
Source§fn clone(&self) -> CacheDatabaseOperation
fn clone(&self) -> CacheDatabaseOperation
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 moreimpl Copy for CacheDatabaseOperation
Source§impl Debug for CacheDatabaseOperation
impl Debug for CacheDatabaseOperation
impl Eq for CacheDatabaseOperation
Source§impl Hash for CacheDatabaseOperation
impl Hash for CacheDatabaseOperation
Source§impl PartialEq for CacheDatabaseOperation
impl PartialEq for CacheDatabaseOperation
impl StructuralPartialEq for CacheDatabaseOperation
Auto Trait Implementations§
impl Freeze for CacheDatabaseOperation
impl RefUnwindSafe for CacheDatabaseOperation
impl Send for CacheDatabaseOperation
impl Sync for CacheDatabaseOperation
impl Unpin for CacheDatabaseOperation
impl UnsafeUnpin for CacheDatabaseOperation
impl UnwindSafe for CacheDatabaseOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more