[][src]Struct tarpc_lib::server::Config

#[non_exhaustive]
pub struct Config { pub max_connections: usize, pub max_connections_per_ip: usize, pub max_in_flight_requests_per_connection: usize, pub pending_response_buffer: usize, }

Settings that control the behavior of the server.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
max_connections: usize

The maximum number of clients that can be connected to the server at once. When at the limit, existing connections are honored and new connections are rejected.

max_connections_per_ip: usize

The maximum number of clients per IP address that can be connected to the server at once. When an IP is at the limit, existing connections are honored and new connections on that IP address are rejected.

max_in_flight_requests_per_connection: usize

The maximum number of requests that can be in flight for each client. When a client is at the in-flight request limit, existing requests are fulfilled and new requests are rejected. Rejected requests are sent a response error.

pending_response_buffer: usize

The number of responses per client that can be buffered server-side before being sent. pending_response_buffer controls the buffer size of the channel that a server's response tasks use to send responses to the client handler task.

Trait Implementations

impl Clone for Config[src]

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

Performs copy-assignment from source. Read more

impl Default for Config[src]

impl Debug for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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