Struct fibers_rpc::channel::ChannelOptions
[−]
[src]
pub struct ChannelOptions { pub read_buffer_size: usize, pub write_buffer_size: usize, pub max_transmit_queue_len: usize, pub yield_threshold: usize, }
Options for a RPC channel.
Fields
read_buffer_size: usize
The byte size of the application level read buffer.
write_buffer_size: usize
The byte size of the application level write buffer.
max_transmit_queue_len: usize
The maximum length of the transmit queue.
If the queue exceeds this value, the RPC channel (i.e., TCP connection) will be disconnected.
yield_threshold: usize
Maximum number of iterations in a Future::poll()
call.
If it exceeds this value, it will break the loop by calling fibers::fiber::yield_poll()
.
Methods
impl ChannelOptions
[src]
pub const DEFAULT_READ_BUFFER_SIZE: usize
DEFAULT_READ_BUFFER_SIZE: usize = MAX_PACKET_LEN * 2
The default value of read_buffer_size
field.
pub const DEFAULT_WRITE_BUFFER_SIZE: usize
DEFAULT_WRITE_BUFFER_SIZE: usize = MAX_PACKET_LEN * 2
The default value of write_buffer_size
field.
pub const DEFAULT_MAX_TRANSMIT_QUEUE_LEN: usize
DEFAULT_MAX_TRANSMIT_QUEUE_LEN: usize = 10000
The default value of max_transmit_queue_len
field.
pub const DEFAULT_YIELD_THRESHOLD: usize
DEFAULT_YIELD_THRESHOLD: usize = 128
The default value of yield_threshold
field.
Trait Implementations
impl Debug for ChannelOptions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ChannelOptions
[src]
fn clone(&self) -> ChannelOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more