pub enum GrepMode {
Disabled,
ServeOnly,
MaintainOnly,
ServeAndMaintain,
}Expand description
What this server does about grep: answer queries, keep the index built, both, or neither.
The two jobs are independent. A read replica can serve searches over an index another process maintains; a write node can maintain the index for namespaces it never answers searches about; the reference deployment does both. Every combination is named here, so none has to be validated away.
Variants§
Disabled
Neither answer grep queries nor maintain the index.
ServeOnly
Answer queries over an index some other process maintains.
MaintainOnly
Maintain the index without answering queries about it.
ServeAndMaintain
Answer queries and maintain the index in this process.
Implementations§
Source§impl GrepMode
impl GrepMode
Sourcepub fn serves_grep(self) -> bool
pub fn serves_grep(self) -> bool
Whether the grep query endpoint is supported.
Sourcepub fn maintains_index(self) -> bool
pub fn maintains_index(self) -> bool
Whether this server’s writer registers the grep index job — which is also what the index-administration endpoints act through.
Trait Implementations§
impl Copy for GrepMode
Source§impl<'de> Deserialize<'de> for GrepMode
impl<'de> Deserialize<'de> for GrepMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GrepMode
impl StructuralPartialEq for GrepMode
Auto Trait Implementations§
impl Freeze for GrepMode
impl RefUnwindSafe for GrepMode
impl Send for GrepMode
impl Sync for GrepMode
impl Unpin for GrepMode
impl UnsafeUnpin for GrepMode
impl UnwindSafe for GrepMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more