[−][src]Struct fibers_rpc::channel::ChannelOptions
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(&self) -> 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
impl Send for ChannelOptions
impl Sync for ChannelOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,