[][src]Struct yamux::Config

pub struct Config { /* fields omitted */ }

Yamux configuration.

The default configuration values are as follows:

  • receive window = 256 KiB
  • max. buffer size (per stream) = 1 MiB
  • max. number of streams = 8192
  • window update mode = on receive
  • read after close = true

Methods

impl Config[src]

pub fn set_receive_window(&mut self, n: u32) -> Result<(), ()>[src]

Set the receive window (must be >= 256 KiB).

pub fn set_max_buffer_size(&mut self, n: usize)[src]

Set the max. buffer size per stream.

pub fn set_max_num_streams(&mut self, n: usize)[src]

Set the max. number of streams.

pub fn set_window_update_mode(&mut self, m: WindowUpdateMode)[src]

Set the window update mode to use.

pub fn set_read_after_close(&mut self, b: bool)[src]

Allow or disallow streams to read from buffered data after the connection has been closed.

Trait Implementations

impl Default for Config[src]

impl Clone for Config[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T