Enum yamux::WindowUpdateMode
source · pub enum WindowUpdateMode {
OnReceive,
OnRead,
}
Expand description
Specifies when window update frames are sent.
Variants§
OnReceive
👎Deprecated: Use
WindowUpdateMode::OnRead
instead.Send window updates as soon as a Stream
’s receive window drops to 0.
This ensures that the sender can resume sending more data as soon as possible
but a slow reader on the receiving side may be overwhelmed, i.e. it accumulates
data in its buffer which may reach its limit (see set_max_buffer_size
).
In this mode, window updates merely prevent head of line blocking but do not
effectively exercise back pressure on senders.
OnRead
Send window updates only when data is read on the receiving end.
This ensures that senders do not overwhelm receivers and keeps buffer usage low.
Trait Implementations§
source§impl Clone for WindowUpdateMode
impl Clone for WindowUpdateMode
source§fn clone(&self) -> WindowUpdateMode
fn clone(&self) -> WindowUpdateMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowUpdateMode
impl Debug for WindowUpdateMode
source§impl PartialEq for WindowUpdateMode
impl PartialEq for WindowUpdateMode
source§fn eq(&self, other: &WindowUpdateMode) -> bool
fn eq(&self, other: &WindowUpdateMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowUpdateMode
impl Eq for WindowUpdateMode
impl StructuralPartialEq for WindowUpdateMode
Auto Trait Implementations§
impl Freeze for WindowUpdateMode
impl RefUnwindSafe for WindowUpdateMode
impl Send for WindowUpdateMode
impl Sync for WindowUpdateMode
impl Unpin for WindowUpdateMode
impl UnwindSafe for WindowUpdateMode
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)