pub struct Configuration {
pub max_frame_size: u32,
pub channel_max: usize,
pub idle_time_out: Option<Milliseconds>,
pub hostname: Option<ByteString>,
}Expand description
Amqp1 transport configuration.
Fields§
§max_frame_size: u32§channel_max: usize§idle_time_out: Option<Milliseconds>§hostname: Option<ByteString>Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn channel_max(&mut self, num: u16) -> &mut Self
pub fn channel_max(&mut self, num: u16) -> &mut Self
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
Sourcepub fn max_frame_size(&mut self, size: u32) -> &mut Self
pub fn max_frame_size(&mut self, size: u32) -> &mut Self
Set max frame size for the connection.
By default max size is set to 64kb
Sourcepub fn get_max_frame_size(&self) -> usize
pub fn get_max_frame_size(&self) -> usize
Get max frame size for the connection.
Sourcepub fn idle_timeout(&mut self, timeout: u32) -> &mut Self
pub fn idle_timeout(&mut self, timeout: u32) -> &mut Self
Set idle time-out for the connection in milliseconds
By default idle time-out is set to 120000 milliseconds
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
Source§impl Default for Configuration
impl Default for Configuration
Auto Trait Implementations§
impl !Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more