pub struct QuerierBuilder<P, K, C, S>{ /* private fields */ }Expand description
The builder for a query
Implementations§
Source§impl<P> QuerierBuilder<P, NoSelector, NoCallback, NoStorage>
impl<P> QuerierBuilder<P, NoSelector, NoCallback, NoStorage>
Source§impl<P, K, C, S> QuerierBuilder<P, K, C, S>
impl<P, K, C, S> QuerierBuilder<P, K, C, S>
Sourcepub const fn activation_state(self, state: OperationState) -> Self
pub const fn activation_state(self, state: OperationState) -> Self
Set the activation state.
Sourcepub const fn mode(self, mode: ConsolidationMode) -> Self
pub const fn mode(self, mode: ConsolidationMode) -> Self
Set the ConsolidationMode of the Querier.
Sourcepub fn session_id(self, session_id: &str) -> Self
pub fn session_id(self, session_id: &str) -> Self
Set the session id.
Sourcepub const fn target(self, target: QueryTarget) -> Self
pub const fn target(self, target: QueryTarget) -> Self
Set the QueryTarget of the Querier.
Source§impl<P, C, S> QuerierBuilder<P, NoSelector, C, S>
impl<P, C, S> QuerierBuilder<P, NoSelector, C, S>
Sourcepub fn selector(self, selector: &str) -> QuerierBuilder<P, Selector, C, S>
pub fn selector(self, selector: &str) -> QuerierBuilder<P, Selector, C, S>
Set the full expression for the query
Sourcepub fn topic(self, topic: &str) -> QuerierBuilder<P, Selector, C, S>
pub fn topic(self, topic: &str) -> QuerierBuilder<P, Selector, C, S>
Set only the message qualifing part of the query. Will be prefixed with agents prefix.
Source§impl<P, K, S> QuerierBuilder<P, K, NoCallback, S>
impl<P, K, S> QuerierBuilder<P, K, NoCallback, S>
Sourcepub fn callback<C, F>(
self,
callback: C,
) -> QuerierBuilder<P, K, Callback<ArcGetCallback<P>>, S>
pub fn callback<C, F>( self, callback: C, ) -> QuerierBuilder<P, K, Callback<ArcGetCallback<P>>, S>
Set query callback for response messages
Source§impl<P, K, C> QuerierBuilder<P, K, C, NoStorage>
impl<P, K, C> QuerierBuilder<P, K, C, NoStorage>
Sourcepub fn storage(
self,
storage: Arc<RwLock<HashMap<String, Box<dyn QuerierTrait>>>>,
) -> QuerierBuilder<P, K, C, Storage<Box<dyn QuerierTrait>>>
pub fn storage( self, storage: Arc<RwLock<HashMap<String, Box<dyn QuerierTrait>>>>, ) -> QuerierBuilder<P, K, C, Storage<Box<dyn QuerierTrait>>>
Provide agents storage for the query
Source§impl<P, S> QuerierBuilder<P, Selector, Callback<ArcGetCallback<P>>, S>
impl<P, S> QuerierBuilder<P, Selector, Callback<ArcGetCallback<P>>, S>
Source§impl<P> QuerierBuilder<P, Selector, Callback<ArcGetCallback<P>>, Storage<Box<dyn QuerierTrait>>>
impl<P> QuerierBuilder<P, Selector, Callback<ArcGetCallback<P>>, Storage<Box<dyn QuerierTrait>>>
Trait Implementations§
Auto Trait Implementations§
impl<P, K, C, S> Freeze for QuerierBuilder<P, K, C, S>
impl<P, K, C, S> !RefUnwindSafe for QuerierBuilder<P, K, C, S>
impl<P, K, C, S> Send for QuerierBuilder<P, K, C, S>
impl<P, K, C, S> Sync for QuerierBuilder<P, K, C, S>
impl<P, K, C, S> Unpin for QuerierBuilder<P, K, C, S>
impl<P, K, C, S> !UnwindSafe for QuerierBuilder<P, K, C, S>
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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