pub struct CacheUpdated {
pub buffer_id: BufferId,
pub kind: CacheKind,
}Expand description
Cache update notification event.
Emitted when a cache (e.g., syntax highlights) has been updated for a buffer. Drivers can subscribe to this event to trigger re-renders or other updates.
§Example
ⓘ
use reovim_kernel::api::v1::*;
let bus = EventBus::new();
bus.subscribe::<CacheUpdated, _>(100, |event| {
println!("Cache updated for buffer {:?}: {:?}", event.buffer_id, event.kind);
EventResult::Handled
});Fields§
§buffer_id: BufferIdThe buffer whose cache was updated.
kind: CacheKindWhat kind of cache was updated.
Trait Implementations§
Source§impl Clone for CacheUpdated
impl Clone for CacheUpdated
Source§fn clone(&self) -> CacheUpdated
fn clone(&self) -> CacheUpdated
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheUpdated
impl Debug for CacheUpdated
Auto Trait Implementations§
impl Freeze for CacheUpdated
impl RefUnwindSafe for CacheUpdated
impl Send for CacheUpdated
impl Sync for CacheUpdated
impl Unpin for CacheUpdated
impl UnsafeUnpin for CacheUpdated
impl UnwindSafe for CacheUpdated
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