pub struct MultipathConfig {
pub max_paths: usize,
pub strategy: PathSelectionStrategy,
pub enable_redundancy: bool,
pub min_quality_threshold: f64,
pub quality_check_interval: Duration,
pub path_idle_timeout: Duration,
pub enable_auto_migration: bool,
pub migration_quality_threshold: f64,
}Expand description
Configuration for multipath QUIC manager
Fields§
§max_paths: usizeMaximum number of concurrent paths
strategy: PathSelectionStrategyPath selection strategy
enable_redundancy: boolEnable redundant transmission for critical data
min_quality_threshold: f64Minimum quality score to keep a path active (0.0 - 1.0)
quality_check_interval: DurationInterval for path quality monitoring
path_idle_timeout: DurationMaximum age for a path without traffic before considering it stale
enable_auto_migration: boolEnable automatic path migration based on quality
migration_quality_threshold: f64Quality difference threshold to trigger migration (0.0 - 1.0)
Implementations§
Source§impl MultipathConfig
impl MultipathConfig
Sourcepub fn low_latency() -> Self
pub fn low_latency() -> Self
Configuration optimized for low-latency applications
Sourcepub fn high_bandwidth() -> Self
pub fn high_bandwidth() -> Self
Configuration optimized for high-bandwidth applications
Sourcepub fn high_reliability() -> Self
pub fn high_reliability() -> Self
Configuration optimized for high reliability
Trait Implementations§
Source§impl Clone for MultipathConfig
impl Clone for MultipathConfig
Source§fn clone(&self) -> MultipathConfig
fn clone(&self) -> MultipathConfig
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 MultipathConfig
impl Debug for MultipathConfig
Auto Trait Implementations§
impl Freeze for MultipathConfig
impl RefUnwindSafe for MultipathConfig
impl Send for MultipathConfig
impl Sync for MultipathConfig
impl Unpin for MultipathConfig
impl UnwindSafe for MultipathConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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