Struct evento::MemoryEngine
source · pub struct MemoryEngine(/* private fields */);Implementations§
source§impl MemoryEngine
impl MemoryEngine
pub fn new<S: StoreEngine + Sync + Send + 'static>( store: EventStore<S> ) -> Evento<Self, S>
Trait Implementations§
source§impl Clone for MemoryEngine
impl Clone for MemoryEngine
source§fn clone(&self) -> MemoryEngine
fn clone(&self) -> MemoryEngine
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for MemoryEngine
impl Default for MemoryEngine
source§fn default() -> MemoryEngine
fn default() -> MemoryEngine
Returns the “default value” for a type. Read more
source§impl Engine for MemoryEngine
impl Engine for MemoryEngine
fn init<K: Into<String>>( &self, key: K, consumer_id: Uuid ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn get_subscription<K: Into<String>>( &self, key: K ) -> Pin<Box<dyn Future<Output = Result<Subscription, StoreError>> + Send + '_>>
fn update_subscription( &self, subscription: Subscription ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn add_deadletter( &self, events: Vec<Event> ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + '_>>
fn read_deadletters( &self, first: usize, after: Option<Uuid> ) -> Pin<Box<dyn Future<Output = Result<Vec<Event>, StoreError>> + Send + '_>>
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryEngine
impl Send for MemoryEngine
impl Sync for MemoryEngine
impl Unpin for MemoryEngine
impl !UnwindSafe for MemoryEngine
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