[][src]Struct fibers_rpc::channel::ChannelOptions

pub struct ChannelOptions {
    pub read_buffer_size: usize,
    pub write_buffer_size: usize,
    pub max_transmit_queue_len: usize,
    pub yield_threshold: usize,
    pub tcp_connect_timeout: Duration,
    pub tcp_write_timeout: Duration,
}

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().

tcp_connect_timeout: Duration

TCP connect timeout duration.

tcp_write_timeout: Duration

Timeout duration of a write operation.

Methods

impl ChannelOptions[src]

pub const DEFAULT_READ_BUFFER_SIZE: usize[src]

The default value of read_buffer_size field.

pub const DEFAULT_WRITE_BUFFER_SIZE: usize[src]

The default value of write_buffer_size field.

pub const DEFAULT_MAX_TRANSMIT_QUEUE_LEN: usize[src]

The default value of max_transmit_queue_len field.

pub const DEFAULT_YIELD_THRESHOLD: usize[src]

The default value of yield_threshold field.

pub const DEFAULT_TCP_CONNECT_TIMEOUT_SECONDS: u64[src]

The default duration of tcp_connect_timeout field.

pub const DEFAULT_TCP_WRITE_TIMEOUT_SECONDS: u64[src]

The default duration of tcp_write_timeout field.

Trait Implementations

impl Clone for ChannelOptions[src]

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

Performs copy-assignment from source. Read more

impl Default for ChannelOptions[src]

impl Debug for ChannelOptions[src]

Auto Trait Implementations

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 = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]