pub struct KvCappedPeer { /* private fields */ }Expand description
One handle onto a KvCappedFixture’s peer.
Arc for the reason MemorySyncHandle gives:
many handles share one log, and the peer stays Send + Sync.
Trait Implementations§
Source§impl Clone for KvCappedPeer
impl Clone for KvCappedPeer
Source§impl Debug for KvCappedPeer
impl Debug for KvCappedPeer
Source§impl SendSyncPeer for KvCappedPeer
impl SendSyncPeer for KvCappedPeer
Source§async fn push(&self, batch: &PushBatch) -> Result<Ack, Self::Error>
async fn push(&self, batch: &PushBatch) -> Result<Ack, Self::Error>
Checks every value before storing any, so a refused push stores nothing and a group is never split by the cap.
Source§type Error = KvPeerError
type Error = KvPeerError
Source§type Resume = MemoryResume
type Resume = MemoryResume
Where to resume from: opaque to the caller, owned by the caller. Read more
Auto Trait Implementations§
impl Freeze for KvCappedPeer
impl RefUnwindSafe for KvCappedPeer
impl Send for KvCappedPeer
impl Sync for KvCappedPeer
impl Unpin for KvCappedPeer
impl UnsafeUnpin for KvCappedPeer
impl UnwindSafe for KvCappedPeer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<TraitVariantBlanketType> SyncPeer for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendSyncPeer,
impl<TraitVariantBlanketType> SyncPeer for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendSyncPeer,
§type Resume = <TraitVariantBlanketType as SendSyncPeer>::Resume
type Resume = <TraitVariantBlanketType as SendSyncPeer>::Resume
Where to resume from: opaque to the caller, owned by the caller. Read more
§async fn pull(
&self,
from: Option<&<TraitVariantBlanketType as SyncPeer>::Resume>,
) -> Result<Pulled<<TraitVariantBlanketType as SyncPeer>::Resume>, <TraitVariantBlanketType as SyncPeer>::Error>
async fn pull( &self, from: Option<&<TraitVariantBlanketType as SyncPeer>::Resume>, ) -> Result<Pulled<<TraitVariantBlanketType as SyncPeer>::Resume>, <TraitVariantBlanketType as SyncPeer>::Error>
Fetches the next batch of events the far side holds and this side does
not, plus the token to resume after them. Read more