Struct oas_core::couch::CouchManager
source · [−]pub struct CouchManager { /* private fields */ }
Implementations
sourceimpl CouchManager
impl CouchManager
pub fn with_url<S>(url: Option<S>) -> Result<Self>where
S: AsRef<str>,
pub fn with_config(config: Config) -> Result<Self>
pub async fn wait_for_ready(&self) -> Result<(), CouchError>
pub async fn destroy_and_init(&self) -> Result<()>
pub fn record_db(&self) -> &CouchDB
pub fn meta_db(&self) -> &CouchDB
pub async fn durable_changes(
&self,
id: impl ToString,
opts: ChangesOpts
) -> DurableChanges
Trait Implementations
sourceimpl Clone for CouchManager
impl Clone for CouchManager
sourcefn clone(&self) -> CouchManager
fn clone(&self) -> CouchManager
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for CouchManager
impl Send for CouchManager
impl Sync for CouchManager
impl Unpin for CouchManager
impl !UnwindSafe for CouchManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self