Struct lapin_futures_tls_api::lapin::channel::BasicQosOptions
source · pub struct BasicQosOptions {
pub prefetch_size: u32,
pub prefetch_count: u16,
pub global: bool,
}Expand description
Quality of service“ settings. The QoS can be specified for the current channel or for all channels on the connection. The particular properties and semantics of a qos method always depend on the content class semantics. Though the qos method could in principle apply to both peers, it is currently meaningful only for the server.
Fields§
§prefetch_size: u32The client can request that messages be sent in advance so that when the client finishes processing a message, the following message is already held locally, rather than needing to be sent down the channel. Prefetching gives a performance improvement. This field specifies the prefetch window size in octets. The server will send a message in advance if it is equal to or smaller in size than the available prefetch size (and also falls into other prefetch limits). May be set to zero, meaning “no specific limit”, although other prefetch limits may still apply. The prefetch-size is ignored if the no-ack option is set.
prefetch_count: u16Specifies a prefetch window in terms of whole messages. This field may be used in combination with the prefetch-size field; a message will only be sent in advance if both prefetch windows (and those at the channel and connection level) allow it. The prefetch-count is ignored if the no-ack option is set.
global: boolRabbitMQ has reinterpreted this field. The original specification said: “By default the QoS settings apply to the current channel only. If this field is set, they are applied to the entire connection.” Instead, RabbitMQ takes global=false to mean that the QoS settings should apply per-consumer (for new consumers on the channel; existing ones being unaffected) and global=true to mean that the QoS settings should apply per-channel.
Trait Implementations§
source§impl Clone for BasicQosOptions
impl Clone for BasicQosOptions
source§fn clone(&self) -> BasicQosOptions
fn clone(&self) -> BasicQosOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BasicQosOptions
impl Debug for BasicQosOptions
source§impl Default for BasicQosOptions
impl Default for BasicQosOptions
source§fn default() -> BasicQosOptions
fn default() -> BasicQosOptions
source§impl PartialEq for BasicQosOptions
impl PartialEq for BasicQosOptions
source§fn eq(&self, other: &BasicQosOptions) -> bool
fn eq(&self, other: &BasicQosOptions) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BasicQosOptions
Auto Trait Implementations§
impl Freeze for BasicQosOptions
impl RefUnwindSafe for BasicQosOptions
impl Send for BasicQosOptions
impl Sync for BasicQosOptions
impl Unpin for BasicQosOptions
impl UnwindSafe for BasicQosOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)