pub trait FsMemoryLimiter: Send + Sync + Debug {
    // Required methods
    fn on_grow(&self, grown_bytes: usize) -> Result<(), FsError>;
    fn on_shrink(&self, shrunk_bytes: usize);
}
Expand description

Allows tracking and limiting the memory usage of a memfs [FileSystem].

Required Methods§

source

fn on_grow(&self, grown_bytes: usize) -> Result<(), FsError>

source

fn on_shrink(&self, shrunk_bytes: usize)

Implementors§