pub struct StreamMultiplexorConfig {
pub max_frame_size: usize,
pub buf_size: usize,
pub max_queued_frames: usize,
pub accept_queue_len: usize,
pub identifier: &'static str,
}
Expand description
Config struct for StreamMultiplexor<T>
.
Fields§
§max_frame_size: usize
Frames larger than this size will be dropped.
buf_size: usize
Buffer size when reading / writing to vended streams,
should be at least 512 bytes smaller than max_frame_size
.
max_queued_frames: usize
How many frames can we queue in our inner channel before we block.
accept_queue_len: usize
How many pending connections do we queue waiting on
accept()
to be called.
identifier: &'static str
An identifier for this StreamMultiplexor<T>
.
Used in tracing logs.
Implementations§
Source§impl StreamMultiplexorConfig
impl StreamMultiplexorConfig
Sourcepub fn with_identifier(self, identifier: &'static str) -> Self
pub fn with_identifier(self, identifier: &'static str) -> Self
Add identifier static &str to config
Trait Implementations§
Source§impl Clone for StreamMultiplexorConfig
impl Clone for StreamMultiplexorConfig
Source§fn clone(&self) -> StreamMultiplexorConfig
fn clone(&self) -> StreamMultiplexorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StreamMultiplexorConfig
impl Debug for StreamMultiplexorConfig
Source§impl Default for StreamMultiplexorConfig
impl Default for StreamMultiplexorConfig
impl Copy for StreamMultiplexorConfig
Auto Trait Implementations§
impl Freeze for StreamMultiplexorConfig
impl RefUnwindSafe for StreamMultiplexorConfig
impl Send for StreamMultiplexorConfig
impl Sync for StreamMultiplexorConfig
impl Unpin for StreamMultiplexorConfig
impl UnwindSafe for StreamMultiplexorConfig
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