Struct shared_mongodb::ClientHolder
source · [−]pub struct ClientHolder {
pub connected: bool,
pub client: Option<Client>,
pub client_options: ClientOptions,
}
Expand description
Holds a MongoDB Client.
Fields
connected: bool
Whether the client is connected to a MongoDB cluster
client: Option<Client>
A MongoDB Client
client_options: ClientOptions
A MongoDB ClientOptions
Implementations
sourceimpl ClientHolder
impl ClientHolder
pub fn new(client_options: ClientOptions) -> Self
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