Struct chunks::Chunks [−][src]
pub struct Chunks<S: Store> { /* fields omitted */ }
It keeps your chunks warm for you.
Methods
impl<S: Store> Chunks<S>
[src]
impl<S: Store> Chunks<S>
pub fn new(store: S) -> Self
[src]
pub fn new(store: S) -> Self
Make one of these things.
pub fn tick(&mut self)
[src]
pub fn tick(&mut self)
Process any completed I/O requests.
pub fn reap(&mut self)
[src]
pub fn reap(&mut self)
Evict any chunks that weren't used since the last reap.
pub fn load(&mut self, key: S::Key) -> Option<&mut Chunk<S>>
[src]
pub fn load(&mut self, key: S::Key) -> Option<&mut Chunk<S>>
Get the chunk or begin loading it.
pub fn load_sync(&mut self, key: S::Key) -> &mut Chunk<S>
[src]
pub fn load_sync(&mut self, key: S::Key) -> &mut Chunk<S>
Get the chunk or wait until it's been loaded.
pub fn reload(&mut self, key: S::Key)
[src]
pub fn reload(&mut self, key: S::Key)
Reload the chunk, discarding any changes.
impl<S: Store> Chunks<S> where
S::Value: Clone,
[src]
impl<S: Store> Chunks<S> where
S::Value: Clone,