Struct mas_storage_pg::job::PgJobRepository
source · pub struct PgJobRepository<'c> { /* private fields */ }
Expand description
An implementation of JobRepository
for a PostgreSQL connection.
Implementations§
source§impl<'c> PgJobRepository<'c>
impl<'c> PgJobRepository<'c>
sourcepub fn new(conn: &'c mut PgConnection) -> Self
pub fn new(conn: &'c mut PgConnection) -> Self
Create a new PgJobRepository
from an active PostgreSQL connection.
Trait Implementations§
source§impl<'c> JobRepository for PgJobRepository<'c>
impl<'c> JobRepository for PgJobRepository<'c>
§type Error = DatabaseError
type Error = DatabaseError
The error type returned by the repository.
Auto Trait Implementations§
impl<'c> Freeze for PgJobRepository<'c>
impl<'c> !RefUnwindSafe for PgJobRepository<'c>
impl<'c> Send for PgJobRepository<'c>
impl<'c> Sync for PgJobRepository<'c>
impl<'c> Unpin for PgJobRepository<'c>
impl<'c> !UnwindSafe for PgJobRepository<'c>
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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 moresource§impl<T> JobRepositoryExt for Twhere
T: JobRepository + ?Sized,
impl<T> JobRepositoryExt for Twhere
T: JobRepository + ?Sized,
§type Error = <T as JobRepository>::Error
type Error = <T as JobRepository>::Error
The error type returned by the repository.