pub struct PoolOptions {
pub link_selection: LinkSelection,
pub station_discovery: StationDiscoveryOptions,
pub respawn_delay: Duration,
pub call_timeout: Duration,
pub replication_factor: usize,
}Expand description
Tunables for Pool. Defaults match every other port of this feature.
Fields§
§link_selection: LinkSelection§station_discovery: StationDiscoveryOptions§respawn_delay: DurationFlat delay before redialing a link after it dies (or fails to dial in the first place). Default 1s — flat, not exponential, matching the reference and every other port in this SDK family except ts.
call_timeout: DurationPer-CALL timeout, passed through to Session::call. Default
matches connection::DEFAULT_CALL_TIMEOUT.
replication_factor: usizeHow many currently-connected links a single publish fans out to.
Partial success counts as success. Default 1, matching macula-ts
and macula-dotnet’s own ReplicationFactor default.
Trait Implementations§
Source§impl Clone for PoolOptions
impl Clone for PoolOptions
Source§fn clone(&self) -> PoolOptions
fn clone(&self) -> PoolOptions
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 moreSource§impl Debug for PoolOptions
impl Debug for PoolOptions
Auto Trait Implementations§
impl Freeze for PoolOptions
impl RefUnwindSafe for PoolOptions
impl Send for PoolOptions
impl Sync for PoolOptions
impl Unpin for PoolOptions
impl UnsafeUnpin for PoolOptions
impl UnwindSafe for PoolOptions
Blanket Implementations§
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