pub struct FailingRuntimeEventStore;Expand description
RuntimeEventStore that always fails. Used by tests that assert a failed
append does not propagate to the live adapter.
Implementations§
Trait Implementations§
Source§impl Clone for FailingRuntimeEventStore
impl Clone for FailingRuntimeEventStore
Source§fn clone(&self) -> FailingRuntimeEventStore
fn clone(&self) -> FailingRuntimeEventStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FailingRuntimeEventStore
Source§impl Debug for FailingRuntimeEventStore
impl Debug for FailingRuntimeEventStore
Source§impl Default for FailingRuntimeEventStore
impl Default for FailingRuntimeEventStore
Source§fn default() -> FailingRuntimeEventStore
fn default() -> FailingRuntimeEventStore
Returns the “default value” for a type. Read more
Source§impl RuntimeEventStore for FailingRuntimeEventStore
impl RuntimeEventStore for FailingRuntimeEventStore
Source§fn append<'life0, 'async_trait>(
&'life0 self,
_event: AgentEvent,
) -> Pin<Box<dyn Future<Output = Result<RuntimeEventEnvelope, RuntimeEventStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
_event: AgentEvent,
) -> Pin<Box<dyn Future<Output = Result<RuntimeEventEnvelope, RuntimeEventStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Appends an event and returns the resulting envelope with identity and
sequence assigned. Read more
Source§fn list_after<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
_after_seq: Option<u64>,
_limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RuntimeEventEnvelope>, RuntimeEventStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_after<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
_after_seq: Option<u64>,
_limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RuntimeEventEnvelope>, RuntimeEventStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for FailingRuntimeEventStore
impl RefUnwindSafe for FailingRuntimeEventStore
impl Send for FailingRuntimeEventStore
impl Sync for FailingRuntimeEventStore
impl Unpin for FailingRuntimeEventStore
impl UnsafeUnpin for FailingRuntimeEventStore
impl UnwindSafe for FailingRuntimeEventStore
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