Skip to main content

CacheInvalidationFrameSink

Trait CacheInvalidationFrameSink 

Source
pub trait CacheInvalidationFrameSink: CacheInvalidationBus {
    // Required method
    fn publish_encoded_frame(&self, bytes: Bytes) -> Result<()>;
}
Expand description

A bus that can apply an already encoded invalidation frame locally.

External transports receive versioned frame bytes. Applying those bytes via this trait keeps inbound traffic on the same decode path as InMemoryFramedInvalidationBus::publish_encoded_frame and prevents transports from fabricating cache mutations directly.

Required Methods§

Source

fn publish_encoded_frame(&self, bytes: Bytes) -> Result<()>

Publish encoded frame bytes into the local invalidation bus.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§