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§
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 UnsafeUnpin 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