pub struct DataPlane {
pub database: DbPool,
pub analytics_service: Arc<AnalyticsService>,
pub fingerprint_repo: Option<Arc<FingerprintRepository>>,
pub user_service: Option<Arc<UserService>>,
}Expand description
Database pool and the data-access services layered on it.
fingerprint_repo and user_service are None when the corresponding
resource failed to initialise; callers must degrade gracefully.
Fields§
§database: DbPool§analytics_service: Arc<AnalyticsService>§fingerprint_repo: Option<Arc<FingerprintRepository>>§user_service: Option<Arc<UserService>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataPlane
impl !RefUnwindSafe for DataPlane
impl Send for DataPlane
impl Sync for DataPlane
impl Unpin for DataPlane
impl UnsafeUnpin for DataPlane
impl !UnwindSafe for DataPlane
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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