pub struct CachingProvider { /* private fields */ }Expand description
A DataProvider whose neighbor lookups are served from a NeighborCache.
A miss returns a pending result and queues the key; the host fetches it
and calls NeighborCache::fill later, at which point the view rebuilds.
Implementations§
Trait Implementations§
Source§impl DataProvider for CachingProvider
impl DataProvider for CachingProvider
fn load(&self) -> Graph
fn neighbors(&self, focus: &NodeId, params: &QueryParams) -> NeighborResult
Auto Trait Implementations§
impl !RefUnwindSafe for CachingProvider
impl !Send for CachingProvider
impl !Sync for CachingProvider
impl !UnwindSafe for CachingProvider
impl Freeze for CachingProvider
impl Unpin for CachingProvider
impl UnsafeUnpin for CachingProvider
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