pub struct AmqpOptions {
pub declare_queue: Option<bool>,
pub prefetch_count: Option<i32>,
}Fields§
§declare_queue: Option<bool>Declare the queue (durable) before consuming; when false the queue is declared passively and must already exist
prefetch_count: Option<i32>Maximum number of unacknowledged messages the broker delivers at once (1-65535)
Implementations§
Source§impl AmqpOptions
impl AmqpOptions
pub fn new() -> AmqpOptions
Trait Implementations§
Source§impl Clone for AmqpOptions
impl Clone for AmqpOptions
Source§fn clone(&self) -> AmqpOptions
fn clone(&self) -> AmqpOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AmqpOptions
impl Debug for AmqpOptions
Source§impl Default for AmqpOptions
impl Default for AmqpOptions
Source§fn default() -> AmqpOptions
fn default() -> AmqpOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmqpOptions
impl<'de> Deserialize<'de> for AmqpOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AmqpOptions
impl PartialEq for AmqpOptions
Source§impl Serialize for AmqpOptions
impl Serialize for AmqpOptions
impl StructuralPartialEq for AmqpOptions
Auto Trait Implementations§
impl Freeze for AmqpOptions
impl RefUnwindSafe for AmqpOptions
impl Send for AmqpOptions
impl Sync for AmqpOptions
impl Unpin for AmqpOptions
impl UnsafeUnpin for AmqpOptions
impl UnwindSafe for AmqpOptions
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