[][src]Struct ntex_amqp::Configuration

pub struct Configuration {
    pub max_frame_size: u32,
    pub channel_max: usize,
    pub idle_time_out: Option<Milliseconds>,
    pub hostname: Option<ByteString>,
}

Amqp1 transport configuration.

Fields

max_frame_size: u32channel_max: usizeidle_time_out: Option<Milliseconds>hostname: Option<ByteString>

Methods

impl Configuration[src]

pub fn new() -> Self[src]

Create connection configuration.

pub fn channel_max(&mut self, num: u16) -> &mut Self[src]

The channel-max value is the highest channel number that may be used on the Connection. This value plus one is the maximum number of Sessions that can be simultaneously active on the Connection.

By default channel max value is set to 1024

pub fn max_frame_size(&mut self, size: u32) -> &mut Self[src]

Set max frame size for the connection.

By default max size is set to 64kb

pub fn get_max_frame_size(&self) -> usize[src]

Get max frame size for the connection.

pub fn idle_timeout(&mut self, timeout: u32) -> &mut Self[src]

Set idle time-out for the connection in milliseconds

By default idle time-out is set to 120000 milliseconds

pub fn hostname(&mut self, hostname: &str) -> &mut Self[src]

Set connection hostname

Hostname is not set by default

pub fn to_open(&self) -> Open[src]

Create Open performative for this configuration.

Trait Implementations

impl Clone for Configuration[src]

impl Debug for Configuration[src]

impl Default for Configuration[src]

impl<'a> From<&'a Open> for Configuration[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,