pub struct StreamRefSettings { /* private fields */ }Expand description
Settings used by StreamRefs endpoints.
The defaults mirror Akka StreamRefs: a 32 element receive buffer, a 30 second subscription timeout, and 1 second demand redelivery. Demand is cumulative, so redelivery is idempotent.
Implementations§
Source§impl StreamRefSettings
impl StreamRefSettings
pub fn buffer_capacity(&self) -> usize
pub fn subscription_timeout(&self) -> Duration
pub fn demand_redelivery_interval(&self) -> Duration
pub fn with_buffer_capacity(self, capacity: usize) -> Self
pub fn with_subscription_timeout(self, timeout: Duration) -> Self
pub fn with_demand_redelivery_interval(self, interval: Duration) -> Self
Trait Implementations§
Source§impl Clone for StreamRefSettings
impl Clone for StreamRefSettings
Source§fn clone(&self) -> StreamRefSettings
fn clone(&self) -> StreamRefSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamRefSettings
Source§impl Debug for StreamRefSettings
impl Debug for StreamRefSettings
Source§impl Default for StreamRefSettings
impl Default for StreamRefSettings
impl Eq for StreamRefSettings
Source§impl PartialEq for StreamRefSettings
impl PartialEq for StreamRefSettings
Source§fn eq(&self, other: &StreamRefSettings) -> bool
fn eq(&self, other: &StreamRefSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamRefSettings
Auto Trait Implementations§
impl Freeze for StreamRefSettings
impl RefUnwindSafe for StreamRefSettings
impl Send for StreamRefSettings
impl Sync for StreamRefSettings
impl Unpin for StreamRefSettings
impl UnsafeUnpin for StreamRefSettings
impl UnwindSafe for StreamRefSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage