pub struct PublisherBuilder<P, K, S>{ /* private fields */ }Expand description
The builder for a Publisher
Implementations§
Source§impl<P> PublisherBuilder<P, NoSelector, NoStorage>
impl<P> PublisherBuilder<P, NoSelector, NoStorage>
Source§impl<P, K, S> PublisherBuilder<P, K, S>
impl<P, K, S> PublisherBuilder<P, K, S>
Sourcepub const fn activation_state(self, state: OperationState) -> Self
pub const fn activation_state(self, state: OperationState) -> Self
Set the activation state.
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 set_congestion_control(
self,
congestion_control: CongestionControl,
) -> Self
pub const fn set_congestion_control( self, congestion_control: CongestionControl, ) -> Self
Set the publishers congestion control
Sourcepub const fn set_express(self, express: bool) -> Self
pub const fn set_express(self, express: bool) -> Self
Set the publishers enexpress policy
Sourcepub const fn set_priority(self, priority: Priority) -> Self
pub const fn set_priority(self, priority: Priority) -> Self
Set the publishers priority
Source§impl<P, K> PublisherBuilder<P, K, NoStorage>
impl<P, K> PublisherBuilder<P, K, NoStorage>
Sourcepub fn storage(
self,
storage: Arc<RwLock<HashMap<String, Box<dyn PublisherTrait>>>>,
) -> PublisherBuilder<P, K, Storage<Box<dyn PublisherTrait>>>
pub fn storage( self, storage: Arc<RwLock<HashMap<String, Box<dyn PublisherTrait>>>>, ) -> PublisherBuilder<P, K, Storage<Box<dyn PublisherTrait>>>
Provide agents storage for the publisher
Source§impl<P, S> PublisherBuilder<P, NoSelector, S>
impl<P, S> PublisherBuilder<P, NoSelector, S>
Source§impl<P, S> PublisherBuilder<P, Selector, S>
impl<P, S> PublisherBuilder<P, Selector, S>
Auto Trait Implementations§
impl<P, K, S> Freeze for PublisherBuilder<P, K, S>
impl<P, K, S> !RefUnwindSafe for PublisherBuilder<P, K, S>
impl<P, K, S> Send for PublisherBuilder<P, K, S>
impl<P, K, S> Sync for PublisherBuilder<P, K, S>
impl<P, K, S> Unpin for PublisherBuilder<P, K, S>
impl<P, K, S> !UnwindSafe for PublisherBuilder<P, K, 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> 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