[−][src]Struct ntex_amqp::Configuration
Amqp1 transport configuration.
Fields
max_frame_size: u32
channel_max: usize
idle_time_out: Option<Milliseconds>
hostname: Option<ByteString>
Implementations
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]
pub fn clone(&self) -> Configuration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Configuration
[src]
impl Default for Configuration
[src]
impl<'a> From<&'a Open> for Configuration
[src]
Auto Trait Implementations
impl RefUnwindSafe for Configuration
[src]
impl Send for Configuration
[src]
impl Sync for Configuration
[src]
impl Unpin for Configuration
[src]
impl UnwindSafe for Configuration
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,