pub struct Mungos {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl Mungos
impl Mungos
pub async fn new(
uri: &str,
app_name: &str,
timeout: Duration,
compressors: impl Into<Option<Vec<Compressor>>>
) -> Mungos
pub fn collection<T>(&self, db_name: &str, collection_name: &str) -> Collection<T>
pub fn arc_collection<T>(
&self,
db_name: &str,
collection_name: &str
) -> Arc<Collection<T>>
pub async fn list_collections(&self, db_name: &str) -> Result<Vec<String>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Mungos
impl Send for Mungos
impl Sync for Mungos
impl Unpin for Mungos
impl !UnwindSafe for Mungos
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