Struct cheval::file_cache::FileCache
source · [−]pub struct FileCache { /* private fields */ }
Implementations
sourceimpl FileCache
impl FileCache
pub fn new() -> Self
pub fn set_mode(&mut self, mode: FileCacheMode)
pub fn enable_block_on_initial_load(&mut self)
pub fn disable_block_on_initial_load(&mut self)
pub async fn run_poll(&mut self) -> Result<()>
pub async fn run_watch(&mut self) -> Result<()>
pub async fn run(&mut self) -> Result<()>
pub fn update(&mut self)
pub fn set_base_path(&mut self, base_path: &PathBuf)
pub fn load(&mut self, filename: &str) -> Result<(u32, Vec<u8>)>
pub fn load_string(&mut self, filename: &str) -> Result<(u32, String)>
pub fn wait_for_change_with_timeout(&mut self, timeout: Duration)
pub fn cache_misses(&self) -> u32
pub fn cache_hits(&self) -> u32
pub fn entry_updates(&self) -> u32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileCache
impl Send for FileCache
impl Sync for FileCache
impl Unpin for FileCache
impl UnwindSafe for FileCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more