Struct shared_mongodb::ClientHolder
source · [−]pub struct ClientHolder {
pub connected: bool,
pub client: Option<Client>,
pub mongodb_uri: Option<String>,
}
Expand description
Holds a MongoDB Client.
Fields
connected: bool
Whether the client is connected to a MongoDB cluster
client: Option<Client>
A MongoDB Client
mongodb_uri: Option<String>
A MongoDB connection string
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ClientHolder
impl Send for ClientHolder
impl Sync for ClientHolder
impl Unpin for ClientHolder
impl !UnwindSafe for ClientHolder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more