pub struct CacheWrap<Inner>(/* private fields */)
where
Inner: RawEventHandler,
Inner::Context: HasCache + Clone + 'static;
Expand description
Wraps an event handler, updating the cache and then forwarding the events
to the inner EventHandler
Implementations§
Trait Implementations§
Source§impl<Inner> RawEventHandler for CacheWrap<Inner>
impl<Inner> RawEventHandler for CacheWrap<Inner>
Auto Trait Implementations§
impl<Inner> Freeze for CacheWrap<Inner>
impl<Inner> RefUnwindSafe for CacheWrap<Inner>
impl<Inner> Send for CacheWrap<Inner>
impl<Inner> Sync for CacheWrap<Inner>
impl<Inner> Unpin for CacheWrap<Inner>
impl<Inner> UnwindSafe for CacheWrap<Inner>
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