#[repr(u8)]pub enum UtpTcpMixedMode {
PreferTcp = 0,
PeerProportional = 1,
}Expand description
μTP / TCP mixed-mode algorithm selection.
This setting controls how the client mixes uTP and TCP connections when both protocols are available. It determines the preference or distribution of connection attempts between the two transport protocols.
Variants§
PreferTcp = 0
Prefer TCP connections when both TCP and uTP are available.
When this mode is selected, the client will favour establishing TCP connections over uTP ones whenever possible.
PeerProportional = 1
Distribute connections proportionally based on peer capabilities.
In this mode the client attempts to balance or proportion connections between TCP and uTP according to peer availability and characteristics, rather than strictly preferring one protocol.
Trait Implementations§
Source§impl Clone for UtpTcpMixedMode
impl Clone for UtpTcpMixedMode
Source§impl Debug for UtpTcpMixedMode
impl Debug for UtpTcpMixedMode
Source§impl Default for UtpTcpMixedMode
impl Default for UtpTcpMixedMode
Source§impl<'de> Deserialize<'de> for UtpTcpMixedMode
impl<'de> Deserialize<'de> for UtpTcpMixedMode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UtpTcpMixedMode
impl PartialEq for UtpTcpMixedMode
Source§impl Serialize for UtpTcpMixedMode
impl Serialize for UtpTcpMixedMode
impl StructuralPartialEq for UtpTcpMixedMode
Auto Trait Implementations§
impl Freeze for UtpTcpMixedMode
impl RefUnwindSafe for UtpTcpMixedMode
impl Send for UtpTcpMixedMode
impl Sync for UtpTcpMixedMode
impl Unpin for UtpTcpMixedMode
impl UnsafeUnpin for UtpTcpMixedMode
impl UnwindSafe for UtpTcpMixedMode
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