pub struct PostgresService;Expand description
Cordis Service for postgres availability — runtime check replaces #[cfg(feature = "postgres")] in handlers.
check() returns cfg!(feature = "postgres") so both cargo check --no-default-features and
cargo check --features postgres compile; handlers branch via PostgresService::check() or cfg!.
Trait Implementations§
Source§impl Service for PostgresService
impl Service for PostgresService
Auto Trait Implementations§
impl Freeze for PostgresService
impl RefUnwindSafe for PostgresService
impl Send for PostgresService
impl Sync for PostgresService
impl Unpin for PostgresService
impl UnsafeUnpin for PostgresService
impl UnwindSafe for PostgresService
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