pub struct MSIProtocol { /* private fields */ }Expand description
MSI coherency protocol implementation
Implementations§
Source§impl MSIProtocol
impl MSIProtocol
Sourcepub async fn remove_peer(&self, peer_id: &str)
pub async fn remove_peer(&self, peer_id: &str)
Remove peer node
Sourcepub async fn handle_read(&self, key: &CacheKey) -> Result<Vec<CoherencyMessage>>
pub async fn handle_read(&self, key: &CacheKey) -> Result<Vec<CoherencyMessage>>
Handle read request
Sourcepub async fn handle_write(
&self,
key: &CacheKey,
) -> Result<Vec<CoherencyMessage>>
pub async fn handle_write( &self, key: &CacheKey, ) -> Result<Vec<CoherencyMessage>>
Handle write request
Sourcepub async fn handle_remote_invalidate(
&self,
key: &CacheKey,
) -> Result<CoherencyMessage>
pub async fn handle_remote_invalidate( &self, key: &CacheKey, ) -> Result<CoherencyMessage>
Handle invalidation request from remote node
Sourcepub async fn handle_invalidate_ack(&self, key: &CacheKey, from_node: &str)
pub async fn handle_invalidate_ack(&self, key: &CacheKey, from_node: &str)
Handle invalidation acknowledgment
Sourcepub async fn invalidations_complete(&self, key: &CacheKey) -> bool
pub async fn invalidations_complete(&self, key: &CacheKey) -> bool
Check if invalidations are complete
Auto Trait Implementations§
impl Freeze for MSIProtocol
impl !RefUnwindSafe for MSIProtocol
impl Send for MSIProtocol
impl Sync for MSIProtocol
impl Unpin for MSIProtocol
impl UnsafeUnpin for MSIProtocol
impl !UnwindSafe for MSIProtocol
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more