pub struct MemoryFs;
Implementations§
Source§impl MemoryFs
impl MemoryFs
pub fn init( memory_size: MemoryDataSize, flush_queue_size: usize, threads_count: usize, min_chunks_count: usize, )
pub fn remove_file( file: impl AsRef<Path>, remove_mode: RemoveFileMode, ) -> Result<(), ()>
pub fn get_file_size(file: impl AsRef<Path>) -> Option<usize>
pub fn ensure_flushed(file: impl AsRef<Path>)
pub fn remove_directory(dir: impl AsRef<Path>, remove_fs: bool) -> bool
pub fn flush_all_to_disk()
pub fn free_memory()
pub fn terminate()
pub fn get_stats() -> MemoryFsStats
pub fn stats_reset()
pub fn reduce_pressure() -> bool
Auto Trait Implementations§
impl Freeze for MemoryFs
impl RefUnwindSafe for MemoryFs
impl Send for MemoryFs
impl Sync for MemoryFs
impl Unpin for MemoryFs
impl UnwindSafe for MemoryFs
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> 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