[−][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.
Implementations
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]
impl Debug for ChannelOptions
[src]
impl Default for ChannelOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelOptions
impl Send for ChannelOptions
impl Sync for ChannelOptions
impl Unpin for ChannelOptions
impl UnwindSafe for ChannelOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,