pub struct ConsistentConcurrency { /* private fields */ }
Expand description
Consistent concurrency strategy increase limits as streams are closed, to keep the number of streams available to peers roughly consistent.
Implementations§
Source§impl ConsistentConcurrency
impl ConsistentConcurrency
pub fn new(initial_max_bi: u64, initial_max_uni: u64) -> ConsistentConcurrency
Trait Implementations§
Source§impl ControlStreamsConcurrency for ConsistentConcurrency
impl ControlStreamsConcurrency for ConsistentConcurrency
Source§fn on_accept_streams(&mut self, _dir: Dir, _sid: u64) -> Option<u64>
fn on_accept_streams(&mut self, _dir: Dir, _sid: u64) -> Option<u64>
Called back upon accepting a new
dir
direction streams with stream id sid
from peer,
all previous inexistent dir
direction streams should be opened by peer will also be created. Read moreAuto Trait Implementations§
impl Freeze for ConsistentConcurrency
impl RefUnwindSafe for ConsistentConcurrency
impl Send for ConsistentConcurrency
impl Sync for ConsistentConcurrency
impl Unpin for ConsistentConcurrency
impl UnwindSafe for ConsistentConcurrency
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