pub struct ExchangeDeclareOptions {
pub ticket: u16,
pub passive: bool,
pub durable: bool,
pub auto_delete: bool,
pub internal: bool,
pub nowait: bool,
}Fields§
§ticket: u16§passive: boolIf set, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not. The client can use this to check whether an exchange exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect. Arguments are compared for semantic equivalence.
durable: boolIf set when creating a new exchange, the exchange will be marked as durable. Durable exchanges remain active when a server restarts. Non-durable exchanges (transient exchanges) are purged if/when a server restarts.
auto_delete: boolIf set, the exchange is deleted when all queues have finished using it.
internal: boolIf set, the exchange may not be used directly by publishers, but only when bound to other exchanges. Internal exchanges are used to construct wiring that is not visible to applications.
nowait: boolIf set, the server will not respond to the method. The client should not wait for a reply method. If the server could not complete the method it will raise a channel or connection exception.
Trait Implementations§
source§impl Clone for ExchangeDeclareOptions
impl Clone for ExchangeDeclareOptions
source§fn clone(&self) -> ExchangeDeclareOptions
fn clone(&self) -> ExchangeDeclareOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExchangeDeclareOptions
impl Debug for ExchangeDeclareOptions
source§impl Default for ExchangeDeclareOptions
impl Default for ExchangeDeclareOptions
source§fn default() -> ExchangeDeclareOptions
fn default() -> ExchangeDeclareOptions
source§impl PartialEq for ExchangeDeclareOptions
impl PartialEq for ExchangeDeclareOptions
source§fn eq(&self, other: &ExchangeDeclareOptions) -> bool
fn eq(&self, other: &ExchangeDeclareOptions) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExchangeDeclareOptions
Auto Trait Implementations§
impl Freeze for ExchangeDeclareOptions
impl RefUnwindSafe for ExchangeDeclareOptions
impl Send for ExchangeDeclareOptions
impl Sync for ExchangeDeclareOptions
impl Unpin for ExchangeDeclareOptions
impl UnwindSafe for ExchangeDeclareOptions
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)