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

The byte size of the application level read buffer.

The byte size of the application level write buffer.

The maximum length of the transmit queue.

If the queue exceeds this value, the RPC channel (i.e., TCP connection) will be disconnected.

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]

DEFAULT_READ_BUFFER_SIZE: usize = MAX_PACKET_LEN * 2

The default value of read_buffer_size field.

DEFAULT_WRITE_BUFFER_SIZE: usize = MAX_PACKET_LEN * 2

The default value of write_buffer_size field.

DEFAULT_MAX_TRANSMIT_QUEUE_LEN: usize = 10000

The default value of max_transmit_queue_len field.

DEFAULT_YIELD_THRESHOLD: usize = 128

The default value of yield_threshold field.

Trait Implementations

impl Debug for ChannelOptions
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ChannelOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ChannelOptions
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations