pub enum NetworkProfile {
Datacenter,
Internet,
}Expand description
Network profile for TCP configuration tuning
Profiles provide pre-configured settings optimized for different network environments. The Datacenter profile is optimized for high-bandwidth, low-latency datacenter networks, while the Internet profile uses more conservative settings suitable for internet connections.
Variants§
Datacenter
Optimized for datacenter networks: <1ms RTT, 25-100 Gbps Uses aggressive buffer sizes
Internet
Conservative settings for internet connections Uses standard buffer sizes
Implementations§
Source§impl NetworkProfile
impl NetworkProfile
Sourcepub fn default_remote_copy_buffer_size(&self) -> usize
pub fn default_remote_copy_buffer_size(&self) -> usize
Returns the default buffer size for remote copy operations for this profile
Datacenter profile uses a large buffer (16 MiB) matching the per-stream receive window to maximize throughput on high-bandwidth networks. Internet profile uses a smaller buffer (2 MiB) suitable for internet connections.
Trait Implementations§
Source§impl Clone for NetworkProfile
impl Clone for NetworkProfile
Source§fn clone(&self) -> NetworkProfile
fn clone(&self) -> NetworkProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NetworkProfile
impl Debug for NetworkProfile
Source§impl Default for NetworkProfile
impl Default for NetworkProfile
Source§fn default() -> NetworkProfile
fn default() -> NetworkProfile
Source§impl<'de> Deserialize<'de> for NetworkProfile
impl<'de> Deserialize<'de> for NetworkProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for NetworkProfile
impl Display for NetworkProfile
Source§impl FromStr for NetworkProfile
impl FromStr for NetworkProfile
Source§impl PartialEq for NetworkProfile
impl PartialEq for NetworkProfile
Source§impl Serialize for NetworkProfile
impl Serialize for NetworkProfile
impl Copy for NetworkProfile
impl Eq for NetworkProfile
impl StructuralPartialEq for NetworkProfile
Auto Trait Implementations§
impl Freeze for NetworkProfile
impl RefUnwindSafe for NetworkProfile
impl Send for NetworkProfile
impl Sync for NetworkProfile
impl Unpin for NetworkProfile
impl UnsafeUnpin for NetworkProfile
impl UnwindSafe for NetworkProfile
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request