pub struct CubicConfig { /* private fields */ }展开描述
Cubic 拥塞控制器的配置
实现§
源代码§impl CubicConfig
impl CubicConfig
源代码pub fn initial_window(&mut self, value: u64) -> &mut CubicConfig
pub fn initial_window(&mut self, value: u64) -> &mut CubicConfig
默认的、在途未确认数据字节数上限。
推荐值:min(10 * max_datagram_size, max(2 * max_datagram_size, 14720))
trait 实现§
源代码§impl Clone for CubicConfig
impl Clone for CubicConfig
源代码§fn clone(&self) -> CubicConfig
fn clone(&self) -> CubicConfig
返回值的副本。 更多信息
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息源代码§impl ControllerFactory for CubicConfig
impl ControllerFactory for CubicConfig
源代码§fn build(
self: Arc<CubicConfig>,
now: Instant,
current_mtu: u16,
) -> Box<dyn Controller>
fn build( self: Arc<CubicConfig>, now: Instant, current_mtu: u16, ) -> Box<dyn Controller>
构造一个新的
Controller源代码§impl Debug for CubicConfig
impl Debug for CubicConfig
源代码§impl Default for CubicConfig
impl Default for CubicConfig
源代码§fn default() -> CubicConfig
fn default() -> CubicConfig
Returns the “default value” for a type. 更多信息
自动 trait 实现§
impl Freeze for CubicConfig
impl RefUnwindSafe for CubicConfig
impl Send for CubicConfig
impl Sync for CubicConfig
impl Unpin for CubicConfig
impl UnsafeUnpin for CubicConfig
impl UnwindSafe for CubicConfig
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息