pub struct PostgresBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for PostgresBackend
impl Debug for PostgresBackend
Source§impl Default for PostgresBackend
impl Default for PostgresBackend
Source§impl Storage for PostgresBackend
impl Storage for PostgresBackend
fn storage_name() -> &'static str
Source§fn create_stream(
&mut self,
stream: Stream,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Stream, StorageError>> + Send>>
fn create_stream( &mut self, stream: Stream, correlation_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Stream, StorageError>> + Send>>
Create a new stream with an identifier Read more
Source§fn delete_stream(
&mut self,
_: &Stream,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send>>
fn delete_stream( &mut self, _: &Stream, correlation_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send>>
Delete a stream from the
Backend Read morefn read_stream( &self, stream_uuid: String, version: usize, limit: usize, correlation_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<RecordedEvent>, StorageError>> + Send>>
fn append_to_stream( &mut self, stream_uuid: &str, events: &[UnsavedEvent], correlation_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>, StorageError>> + Send>>
fn read_stream_info( &mut self, stream_uuid: String, correlation_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Stream, StorageError>> + Send>>
Auto Trait Implementations§
impl Freeze for PostgresBackend
impl !RefUnwindSafe for PostgresBackend
impl Send for PostgresBackend
impl Sync for PostgresBackend
impl Unpin for PostgresBackend
impl !UnwindSafe for PostgresBackend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more