Struct DerivedStateHostBuilder
pub struct DerivedStateHostBuilder { /* private fields */ }Expand description
Builder for DerivedStateHost.
Implementations§
§impl DerivedStateHostBuilder
impl DerivedStateHostBuilder
pub const fn new() -> Self
pub const fn new() -> Self
Creates an empty host builder.
pub fn add_consumer<C>(self, consumer: C) -> Selfwhere
C: DerivedStateConsumer,
pub fn add_consumer<C>(self, consumer: C) -> Selfwhere
C: DerivedStateConsumer,
Registers one derived-state consumer.
pub fn with_replay_source(
self,
replay_source: Arc<dyn DerivedStateReplaySource>,
) -> Self
pub fn with_replay_source( self, replay_source: Arc<dyn DerivedStateReplaySource>, ) -> Self
Registers one replay source used to resume from retained feed envelopes.
pub const fn with_session_id(self, session_id: FeedSessionId) -> Self
pub const fn with_session_id(self, session_id: FeedSessionId) -> Self
Overrides the generated session id.
pub fn build(self) -> DerivedStateHost
pub fn build(self) -> DerivedStateHost
Builds an immutable derived-state host.
Trait Implementations§
§impl Default for DerivedStateHostBuilder
impl Default for DerivedStateHostBuilder
§fn default() -> DerivedStateHostBuilder
fn default() -> DerivedStateHostBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DerivedStateHostBuilder
impl !RefUnwindSafe for DerivedStateHostBuilder
impl Send for DerivedStateHostBuilder
impl Sync for DerivedStateHostBuilder
impl Unpin for DerivedStateHostBuilder
impl UnsafeUnpin for DerivedStateHostBuilder
impl !UnwindSafe for DerivedStateHostBuilder
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
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