Struct oas_core::index::IndexManager
source · [−]pub struct IndexManager { /* private fields */ }
Expand description
The index manager holds configuration, an HTTP client and the names of active indexes.
Implementations
sourceimpl IndexManager
impl IndexManager
sourcepub fn with_config(config: Config) -> Result<Self, Error>
pub fn with_config(config: Config) -> Result<Self, Error>
Create a new manager with configuration.
sourcepub fn with_url<S>(url: Option<S>) -> Result<Self>where
S: AsRef<str>,
pub fn with_url<S>(url: Option<S>) -> Result<Self>where
S: AsRef<str>,
Create a new index manager from an Elasticsearch endpoint URL.
pub async fn wait_for_ready(&self) -> Result<()>
pub async fn init(&self, opts: InitOpts) -> Result<()>
pub async fn destroy_and_init(&self) -> Result<()>
pub fn post_index(&self) -> &Arc<PostIndex>
pub async fn index_changes(&self, db: &CouchDB, infinite: bool) -> Result<()>
Trait Implementations
sourceimpl Clone for IndexManager
impl Clone for IndexManager
sourcefn clone(&self) -> IndexManager
fn clone(&self) -> IndexManager
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 IndexManager
impl Send for IndexManager
impl Sync for IndexManager
impl Unpin for IndexManager
impl !UnwindSafe for IndexManager
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