[][src]Struct amiquip::ConnectionTuning

pub struct ConnectionTuning {
    pub mem_channel_bound: usize,
    pub buffered_writes_high_water: usize,
    pub buffered_writes_low_water: usize,
}

Tuning parameters for the amiquip client.

The options are solely used to control local behavior of the client. They are not part of the AMQP spec and are not communicated with the server in any way. For options that configure the AMQP connection, see ConnectionOptions.

Fields

mem_channel_bound: usize

Set the bound used when creating mio_extras::channel::sync_channel() channels for sending messages to the connection's I/O thread. The default value for this field is 16.

See the discussion on connection tuning for more information.

buffered_writes_high_water: usize

Set the maximum amount of data in bytes that the I/O thread will buffer before it begins to apply backpressure on clients by not reading from their channels. If the high water mark is reached, the I/O loop will not resume reading from client channels until the amount of buffered data drops below buffered_writes_low_water bytes. The default value for this field is 16 MiB.

See the discussion on connection tuning for more information.

buffered_writes_low_water: usize

Set the low water mark for the I/O thread to resume reading from client channels. The default value for this field is 0 bytes.

See the discussion on connection tuning for more information.

Methods

impl ConnectionTuning[src]

pub fn mem_channel_bound(self, mem_channel_bound: usize) -> Self[src]

pub fn buffered_writes_high_water(
    self,
    buffered_writes_high_water: usize
) -> Self
[src]

Set the high water mark for buffered data to be written to the underlying stream.

pub fn buffered_writes_low_water(self, buffered_writes_low_water: usize) -> Self[src]

Set the low water mark for buffered data to be written to the underlying stream.

Trait Implementations

impl Clone for ConnectionTuning[src]

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

Performs copy-assignment from source. Read more

impl Default for ConnectionTuning[src]

impl Debug for ConnectionTuning[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.