pub struct KvEventPublishers { /* private fields */ }Expand description
Shared KV event publisher bundle used by schedulers and KV managers.
Implementations§
Source§impl KvEventPublishers
impl KvEventPublishers
pub fn new( event_sink: Option<Arc<dyn KvCacheEventSink>>, raw_sink: Option<Arc<dyn RawKvEventSink>>, ) -> Self
pub fn raw_enabled(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn publish( &self, event: KvCacheEvent, block_token_ids: Option<&[Vec<u32>]>, ) -> Result<()>
pub fn publish_with_storage_tier( &self, event: KvCacheEvent, block_token_ids: Option<&[Vec<u32>]>, storage_tier: StorageTier, ) -> Result<()>
Trait Implementations§
Source§impl Clone for KvEventPublishers
impl Clone for KvEventPublishers
Source§fn clone(&self) -> KvEventPublishers
fn clone(&self) -> KvEventPublishers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for KvEventPublishers
impl Default for KvEventPublishers
Source§fn default() -> KvEventPublishers
fn default() -> KvEventPublishers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for KvEventPublishers
impl !UnwindSafe for KvEventPublishers
impl Freeze for KvEventPublishers
impl Send for KvEventPublishers
impl Sync for KvEventPublishers
impl Unpin for KvEventPublishers
impl UnsafeUnpin for KvEventPublishers
Blanket Implementations§
impl<T> BlockMetadata for T
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