pub struct MemoryIngestHandle { /* private fields */ }Expand description
One handle onto a MemoryIngestFixture’s store.
A type of its own because the orphan rule refuses impl EventStore for Arc<MemoryIngestStore> in this crate: both the trait and Arc are
foreign, and Arc is not #[fundamental]. Arc because the store 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 MemoryIngestHandle
impl Clone for MemoryIngestHandle
Source§impl Debug for MemoryIngestHandle
impl Debug for MemoryIngestHandle
Source§impl SendEventStore for MemoryIngestHandle
impl SendEventStore for MemoryIngestHandle
Source§type Error = MemoryStoreError
type Error = MemoryStoreError
How this adapter fails for its own reasons. Read more
Source§fn read(
&self,
query: &Query,
options: ReadOptions,
) -> impl Stream<Item = Result<SequencedEvent, Self::Error>> + Send
fn read( &self, query: &Query, options: ReadOptions, ) -> impl Stream<Item = Result<SequencedEvent, Self::Error>> + Send
Source§async fn append(
&self,
events: &[Event],
condition: Option<&AppendCondition>,
) -> Result<SequencePosition, AppendError<Self::Error>>
async fn append( &self, events: &[Event], condition: Option<&AppendCondition>, ) -> Result<SequencePosition, AppendError<Self::Error>>
Source§impl SendIngestStore for MemoryIngestHandle
impl SendIngestStore for MemoryIngestHandle
Source§type Error = MemoryStoreError
type Error = MemoryStoreError
How this store fails, stating a class so a runner never infers one.
Source§async fn store_id(&self) -> Result<StoreId, Self::Error>
async fn store_id(&self) -> Result<StoreId, Self::Error>
This store’s own incarnation identifier. Read more
Source§impl SendWriteGroupStore for MemoryIngestHandle
impl SendWriteGroupStore for MemoryIngestHandle
Source§type Error = GroupOrderError
type Error = GroupOrderError
How this store fails, stating a class so a runner never infers one.
Source§async fn read_groups(
&self,
after: Option<SequencePosition>,
max_events: NonZeroUsize,
) -> Result<GroupPage, Self::Error>
async fn read_groups( &self, after: Option<SequencePosition>, max_events: NonZeroUsize, ) -> Result<GroupPage, Self::Error>
Auto Trait Implementations§
impl Freeze for MemoryIngestHandle
impl RefUnwindSafe for MemoryIngestHandle
impl Send for MemoryIngestHandle
impl Sync for MemoryIngestHandle
impl Unpin for MemoryIngestHandle
impl UnsafeUnpin for MemoryIngestHandle
impl UnwindSafe for MemoryIngestHandle
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,
Source§impl<TraitVariantBlanketType> EventStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendEventStore,
impl<TraitVariantBlanketType> EventStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendEventStore,
Source§type Error = <TraitVariantBlanketType as SendEventStore>::Error
type Error = <TraitVariantBlanketType as SendEventStore>::Error
How this adapter fails for its own reasons. Read more
Source§fn read(
&self,
query: &Query,
options: ReadOptions,
) -> impl Stream<Item = Result<SequencedEvent, <TraitVariantBlanketType as EventStore>::Error>>
fn read( &self, query: &Query, options: ReadOptions, ) -> impl Stream<Item = Result<SequencedEvent, <TraitVariantBlanketType as EventStore>::Error>>
Source§async fn append(
&self,
events: &[Event],
condition: Option<&AppendCondition>,
) -> Result<SequencePosition, AppendError<<TraitVariantBlanketType as EventStore>::Error>>
async fn append( &self, events: &[Event], condition: Option<&AppendCondition>, ) -> Result<SequencePosition, AppendError<<TraitVariantBlanketType as EventStore>::Error>>
Source§async fn head(
&self,
) -> Result<Option<SequencePosition>, <TraitVariantBlanketType as EventStore>::Error>
async fn head( &self, ) -> Result<Option<SequencePosition>, <TraitVariantBlanketType as EventStore>::Error>
The highest position currently visible in the store, or
None when it
holds nothing. Read moreSource§async fn contains_event_id(
&self,
id: EventId,
) -> Result<bool, <TraitVariantBlanketType as EventStore>::Error>
async fn contains_event_id( &self, id: EventId, ) -> Result<bool, <TraitVariantBlanketType as EventStore>::Error>
Whether this store holds an event with
id. Read more§impl<TraitVariantBlanketType> IngestStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendIngestStore,
impl<TraitVariantBlanketType> IngestStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendIngestStore,
§type Error = <TraitVariantBlanketType as SendIngestStore>::Error
type Error = <TraitVariantBlanketType as SendIngestStore>::Error
How this store fails, stating a class so a runner never infers one.
§async fn store_id(
&self,
) -> Result<StoreId, <TraitVariantBlanketType as IngestStore>::Error>
async fn store_id( &self, ) -> Result<StoreId, <TraitVariantBlanketType as IngestStore>::Error>
This store’s own incarnation identifier. Read more
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<TraitVariantBlanketType> WriteGroupStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendWriteGroupStore,
impl<TraitVariantBlanketType> WriteGroupStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendWriteGroupStore,
§type Error = <TraitVariantBlanketType as SendWriteGroupStore>::Error
type Error = <TraitVariantBlanketType as SendWriteGroupStore>::Error
How this store fails, stating a class so a runner never infers one.