pub struct MemorySyncHandle { /* private fields */ }Expand description
One handle onto a MemorySyncFixture’s peer.
A handle rather than the peer itself because a fixture hands out many and
they must share one log; Arc because the reference peer is Send + Sync
and the handle keeps it so, which is what lets it run under the tokio
emitter.
Trait Implementations§
Source§impl Clone for MemorySyncHandle
impl Clone for MemorySyncHandle
Source§impl Debug for MemorySyncHandle
impl Debug for MemorySyncHandle
Source§impl SendSyncPeer for MemorySyncHandle
impl SendSyncPeer for MemorySyncHandle
Source§type Resume = MemoryResume
type Resume = MemoryResume
Where to resume from: opaque to the caller, owned by the caller. Read more
Source§async fn pull(
&self,
from: Option<&Self::Resume>,
) -> Result<Pulled<Self::Resume>, Self::Error>
async fn pull( &self, from: Option<&Self::Resume>, ) -> Result<Pulled<Self::Resume>, Self::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
Auto Trait Implementations§
impl Freeze for MemorySyncHandle
impl RefUnwindSafe for MemorySyncHandle
impl Send for MemorySyncHandle
impl Sync for MemorySyncHandle
impl Unpin for MemorySyncHandle
impl UnsafeUnpin for MemorySyncHandle
impl UnwindSafe for MemorySyncHandle
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