pub struct QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, const BACKGROUND: bool = false> { /* private fields */ }
AdvancedPublisher
and AdvancedSubscriber
instead.Expand description
The builder of FetchingSubscriber
, allowing to configure it.
Implementations§
Source§impl<'a, 'b, KeySpace> QueryingSubscriberBuilder<'a, 'b, KeySpace, DefaultHandler>
impl<'a, 'b, KeySpace> QueryingSubscriberBuilder<'a, 'b, KeySpace, DefaultHandler>
Sourcepub fn callback<F>(
self,
callback: F,
) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn callback<F>( self, callback: F, ) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
AdvancedPublisher
and AdvancedSubscriber
instead.Add callback to FetchingSubscriber
.
Sourcepub fn callback_mut<F>(
self,
callback: F,
) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn callback_mut<F>( self, callback: F, ) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
AdvancedPublisher
and AdvancedSubscriber
instead.Add callback to FetchingSubscriber
.
Using this guarantees that your callback will never be called concurrently.
If your callback is also accepted by the callback
method, we suggest you use it instead of callback_mut
.
Subscriber will not be undeclared when dropped, with the callback running in background until the session is closed.
Sourcepub fn with<Handler>(
self,
handler: Handler,
) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler>where
Handler: IntoHandler<Sample>,
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn with<Handler>(
self,
handler: Handler,
) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler>where
Handler: IntoHandler<Sample>,
AdvancedPublisher
and AdvancedSubscriber
instead.Use the given handler to receive Samples.
Source§impl<'a, 'b, KeySpace> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
impl<'a, 'b, KeySpace> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>>
Sourcepub fn background(
self,
) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>, true>
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn background( self, ) -> QueryingSubscriberBuilder<'a, 'b, KeySpace, Callback<Sample>, true>
AdvancedPublisher
and AdvancedSubscriber
instead.Register the subscriber callback to be run in background until the session is closed.
Background builder doesn’t return a FetchingSubscriber
object anymore.
Source§impl<'b, Handler, const BACKGROUND: bool> QueryingSubscriberBuilder<'_, 'b, UserSpace, Handler, BACKGROUND>
impl<'b, Handler, const BACKGROUND: bool> QueryingSubscriberBuilder<'_, 'b, UserSpace, Handler, BACKGROUND>
Sourcepub fn allowed_origin(self, origin: Locality) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn allowed_origin(self, origin: Locality) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Restrict the matching publications that will be receive by this Subscriber
to the ones that have the given Locality
.
Sourcepub fn query_selector<IntoSelector>(self, query_selector: IntoSelector) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn query_selector<IntoSelector>(self, query_selector: IntoSelector) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Change the selector to be used for queries.
Sourcepub fn query_target(self, query_target: QueryTarget) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn query_target(self, query_target: QueryTarget) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Change the target to be used for queries.
Sourcepub fn query_consolidation<QC: Into<QueryConsolidation>>(
self,
query_consolidation: QC,
) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn query_consolidation<QC: Into<QueryConsolidation>>( self, query_consolidation: QC, ) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Change the consolidation mode to be used for queries.
Sourcepub fn query_accept_replies(self, accept_replies: ReplyKeyExpr) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn query_accept_replies(self, accept_replies: ReplyKeyExpr) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Change the accepted replies for queries.
Source§impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
Sourcepub fn query_timeout(self, query_timeout: Duration) -> Self
👎Deprecated: Use AdvancedPublisher
and AdvancedSubscriber
instead.
pub fn query_timeout(self, query_timeout: Duration) -> Self
AdvancedPublisher
and AdvancedSubscriber
instead.Change the timeout to be used for queries.
Trait Implementations§
Source§impl<KeySpace> IntoFuture for QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true>
impl<KeySpace> IntoFuture for QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true>
Source§type Output = <QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true> as Resolvable>::To
type Output = <QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true> as Resolvable>::To
Source§type IntoFuture = Ready<<QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true> as Resolvable>::To>
type IntoFuture = Ready<<QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true> as Resolvable>::To>
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Source§impl<KeySpace, Handler> IntoFuture for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler>
impl<KeySpace, Handler> IntoFuture for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler>
Source§type Output = <QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> as Resolvable>::To
type Output = <QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> as Resolvable>::To
Source§type IntoFuture = Ready<<QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> as Resolvable>::To>
type IntoFuture = Ready<<QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> as Resolvable>::To>
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Source§impl<KeySpace> Resolvable for QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true>
impl<KeySpace> Resolvable for QueryingSubscriberBuilder<'_, '_, KeySpace, Callback<Sample>, true>
Source§impl<KeySpace, Handler> Resolvable for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler>
impl<KeySpace, Handler> Resolvable for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler>
Auto Trait Implementations§
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> Freeze for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool = false> !RefUnwindSafe for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> Send for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> Sync for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool> Unpin for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
impl<'a, 'b, KeySpace, Handler, const BACKGROUND: bool = false> !UnwindSafe for QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler, BACKGROUND>
Blanket Implementations§
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
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