pub struct BasicConsumeArguments {
pub queue: String,
pub consumer_tag: String,
pub no_local: bool,
pub no_ack: bool,
pub exclusive: bool,
pub no_wait: bool,
pub arguments: FieldTable,
}Expand description
Arguments for basic_consume
§Support chainable methods to build arguments
let x = BasicConsumeArguments::new("q", "c")
.manual_ack(true)
.exclusive(false)
.finish();See AMQP_0-9-1 Reference.
Fields§
§queue: StringTarget queue name. Must be provided.
consumer_tag: StringConsumer identifier. Default: “” (server-generated).
no_local: boolIgnored by modern RabbitMQ releases. Default: false.
no_ack: boolShould automatic acknowledgements be used? Default: false.
exclusive: boolShould this consumer be exclusive (the only one allowed on the target queue)? Default: false.
no_wait: boolDefault: false.
arguments: FieldTableDefault: empty table.
Implementations§
Source§impl BasicConsumeArguments
impl BasicConsumeArguments
Sourcepub fn consumer_tag(&mut self, consumer_tag: String) -> &mut Self
pub fn consumer_tag(&mut self, consumer_tag: String) -> &mut Self
Chainable setter method.
pub fn manual_ack(&mut self, value: bool) -> &mut Self
Sourcepub fn no_ack(&mut self, no_ack: bool) -> &mut Self
👎Deprecated since 1.2.0: use the manual_ack builder method
pub fn no_ack(&mut self, no_ack: bool) -> &mut Self
use the manual_ack builder method
Chainable setter method.
Sourcepub fn arguments(&mut self, arguments: FieldTable) -> &mut Self
pub fn arguments(&mut self, arguments: FieldTable) -> &mut Self
Chainable setter method.
Trait Implementations§
Source§impl Clone for BasicConsumeArguments
impl Clone for BasicConsumeArguments
Source§fn clone(&self) -> BasicConsumeArguments
fn clone(&self) -> BasicConsumeArguments
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 BasicConsumeArguments
impl Debug for BasicConsumeArguments
Source§impl Default for BasicConsumeArguments
impl Default for BasicConsumeArguments
Source§fn default() -> BasicConsumeArguments
fn default() -> BasicConsumeArguments
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BasicConsumeArguments
impl RefUnwindSafe for BasicConsumeArguments
impl Send for BasicConsumeArguments
impl Sync for BasicConsumeArguments
impl Unpin for BasicConsumeArguments
impl UnsafeUnpin for BasicConsumeArguments
impl UnwindSafe for BasicConsumeArguments
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