pub struct RabbitDAL {
pub con: Option<Connection>,
}Fields§
§con: Option<Connection>Implementations§
Source§impl RabbitDAL
impl RabbitDAL
pub async fn new(conf: RabbitSettings) -> RustiumResult<Self>
Trait Implementations§
impl IMqDal for RabbitDAL
Source§impl Injectable for RabbitDAL
impl Injectable for RabbitDAL
Source§fn inject(lifetime: ServiceLifetime) -> InjectBuilder
fn inject(lifetime: ServiceLifetime) -> InjectBuilder
Source§fn singleton() -> InjectBuilder
fn singleton() -> InjectBuilder
Creates and returns a builder for a singleton injected type.
Source§fn scoped() -> InjectBuilder
fn scoped() -> InjectBuilder
Creates and returns a builder for a scoped injected type.
Source§fn transient() -> InjectBuilder
fn transient() -> InjectBuilder
Creates and returns a builder for a transient injected type.
Auto Trait Implementations§
impl Freeze for RabbitDAL
impl RefUnwindSafe for RabbitDAL
impl Send for RabbitDAL
impl Sync for RabbitDAL
impl Unpin for RabbitDAL
impl UnsafeUnpin for RabbitDAL
impl UnwindSafe for RabbitDAL
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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