pub struct Agent<P>{ /* private fields */ }Expand description
An Agent with the basic configuration decisions fixed, but not running
Implementations§
Source§impl<P> Agent<P>
impl<P> Agent<P>
Sourcepub const fn new(properties: P) -> UnconfiguredAgent<P>
pub const fn new(properties: P) -> UnconfiguredAgent<P>
Builder
Sourcepub const fn liveliness(&mut self, activate: bool)
pub const fn liveliness(&mut self, activate: bool)
Activate sending liveliness information
Sourcepub fn liveliness_subscriber(
&self,
) -> LivelinessSubscriberBuilder<P, NoCallback, Storage<Box<dyn LivelinessSubscriber>>>
pub fn liveliness_subscriber( &self, ) -> LivelinessSubscriberBuilder<P, NoCallback, Storage<Box<dyn LivelinessSubscriber>>>
Get a LivelinessSubscriberBuilder, the builder for a LivelinessSubscriber.
Sourcepub fn liveliness_subscriber_for(
&self,
session_id: impl Into<String>,
) -> LivelinessSubscriberBuilder<P, NoCallback, Storage<Box<dyn LivelinessSubscriber>>>
pub fn liveliness_subscriber_for( &self, session_id: impl Into<String>, ) -> LivelinessSubscriberBuilder<P, NoCallback, Storage<Box<dyn LivelinessSubscriber>>>
Get a LivelinessSubscriberBuilder, the builder for a LivelinessSubscriber.
Sourcepub fn observable(
&self,
) -> ObservableBuilder<P, NoSelector, NoCallback, NoCallback, NoCallback, Storage<Box<dyn Responder>>>
pub fn observable( &self, ) -> ObservableBuilder<P, NoSelector, NoCallback, NoCallback, NoCallback, Storage<Box<dyn Responder>>>
Get an ObservableBuilder, the builder for an Observable.
Sourcepub fn observable_for(
&self,
session_id: impl Into<String>,
) -> ObservableBuilder<P, NoSelector, NoCallback, NoCallback, NoCallback, Storage<Box<dyn Responder>>>
pub fn observable_for( &self, session_id: impl Into<String>, ) -> ObservableBuilder<P, NoSelector, NoCallback, NoCallback, NoCallback, Storage<Box<dyn Responder>>>
Get an ObservableBuilder, the builder for an Observable.
Sourcepub fn observer(
&self,
) -> ObserverBuilder<P, NoSelector, NoCallback, NoCallback, Storage<Box<dyn Observer>>>
pub fn observer( &self, ) -> ObserverBuilder<P, NoSelector, NoCallback, NoCallback, Storage<Box<dyn Observer>>>
Get an ObserverBuilder, the builder for an Observer.
Sourcepub fn observer_for(
&self,
session_id: impl Into<String>,
) -> ObserverBuilder<P, NoSelector, NoCallback, NoCallback, Storage<Box<dyn Observer>>>
pub fn observer_for( &self, session_id: impl Into<String>, ) -> ObserverBuilder<P, NoSelector, NoCallback, NoCallback, Storage<Box<dyn Observer>>>
Get an ObserverBuilder, the builder for an Observer.
Sourcepub fn publisher(
&self,
) -> PublisherBuilder<P, NoSelector, Storage<Box<dyn Publisher>>>
pub fn publisher( &self, ) -> PublisherBuilder<P, NoSelector, Storage<Box<dyn Publisher>>>
Get a PublisherBuilder, the builder for a sPublisher.
Sourcepub fn publisher_for(
&self,
session_id: impl Into<String>,
) -> PublisherBuilder<P, NoSelector, Storage<Box<dyn Publisher>>>
pub fn publisher_for( &self, session_id: impl Into<String>, ) -> PublisherBuilder<P, NoSelector, Storage<Box<dyn Publisher>>>
Get a PublisherBuilder, the builder for a sPublisher.
Sourcepub fn querier(
&self,
) -> QuerierBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Querier>>>
pub fn querier( &self, ) -> QuerierBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Querier>>>
Get a QuerierBuilder, the builder for a Querier.
Sourcepub fn querier_for(
&self,
session_id: impl Into<String>,
) -> QuerierBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Querier>>>
pub fn querier_for( &self, session_id: impl Into<String>, ) -> QuerierBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Querier>>>
Get a QuerierBuilder, the builder for a Querier.
Sourcepub fn queryable(
&self,
) -> QueryableBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
pub fn queryable( &self, ) -> QueryableBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
Get a QueryableBuilder, the builder for a Queryable.
Sourcepub fn queryable_for(
&self,
session_id: impl Into<String>,
) -> QueryableBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
pub fn queryable_for( &self, session_id: impl Into<String>, ) -> QueryableBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
Get a QueryableBuilder, the builder for a Queryable.
Sourcepub fn subscriber(
&self,
) -> SubscriberBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
pub fn subscriber( &self, ) -> SubscriberBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
Get a SubscriberBuilder, the builder for a Subscriber.
Sourcepub fn subscriber_for(
&self,
session_id: impl Into<String>,
) -> SubscriberBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
pub fn subscriber_for( &self, session_id: impl Into<String>, ) -> SubscriberBuilder<P, NoSelector, NoCallback, Storage<Box<dyn Responder>>>
Get a SubscriberBuilder, the builder for a Subscriber.
Sourcepub fn timer(
&self,
) -> TimerBuilder<P, NoSelector, NoInterval, NoCallback, Storage<Timer<P>>>
pub fn timer( &self, ) -> TimerBuilder<P, NoSelector, NoInterval, NoCallback, Storage<Timer<P>>>
Get a TimerBuilder, the builder for a Timer.
Trait Implementations§
Auto Trait Implementations§
impl<P> !Freeze for Agent<P>
impl<P> !RefUnwindSafe for Agent<P>
impl<P> Send for Agent<P>
impl<P> Sync for Agent<P>
impl<P> Unpin for Agent<P>
impl<P> !UnwindSafe for Agent<P>
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
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