pub struct StreamConfigBuilder;Expand description
Initial builder stage that requires selecting delivery behavior.
Implementations§
Source§impl StreamConfigBuilder
impl StreamConfigBuilder
Sourcepub fn best_effort_delivery(
self,
) -> StreamConfigReplayBuilder<BestEffortDelivery>
pub fn best_effort_delivery( self, ) -> StreamConfigReplayBuilder<BestEffortDelivery>
Delivery that keeps reading while slow consumers lag behind.
Bounded buffers may overflow, so active consumers can observe gaps or dropped output. This policy avoids applying backpressure for slow consumers, but it is not a blanket throughput guarantee; backend implementation and workload shape still matter.
Sourcepub fn reliable_for_active_subscribers(
self,
) -> StreamConfigReplayBuilder<ReliableDelivery>
pub fn reliable_for_active_subscribers( self, ) -> StreamConfigReplayBuilder<ReliableDelivery>
Delivery that waits for active subscribers when their buffers are full.
This applies backpressure to process-output reading so active consumers see all chunks delivered inside the library. It does not retain output for consumers that attach later; that is controlled by replay settings.
Trait Implementations§
Source§impl Clone for StreamConfigBuilder
impl Clone for StreamConfigBuilder
Source§fn clone(&self) -> StreamConfigBuilder
fn clone(&self) -> StreamConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamConfigBuilder
impl Debug for StreamConfigBuilder
Source§impl PartialEq for StreamConfigBuilder
impl PartialEq for StreamConfigBuilder
impl Copy for StreamConfigBuilder
impl Eq for StreamConfigBuilder
impl StructuralPartialEq for StreamConfigBuilder
Auto Trait Implementations§
impl Freeze for StreamConfigBuilder
impl RefUnwindSafe for StreamConfigBuilder
impl Send for StreamConfigBuilder
impl Sync for StreamConfigBuilder
impl Unpin for StreamConfigBuilder
impl UnsafeUnpin for StreamConfigBuilder
impl UnwindSafe for StreamConfigBuilder
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