pub struct QueueSettings {
pub name: String,
pub passive: bool,
pub durable: bool,
pub exclusive: bool,
pub auto_delete: bool,
pub nowait: bool,
}
Expand description
QueueSettings for declaring RabbitMq queue within consumer & publisher
Fields§
§name: String
§passive: bool
§durable: bool
§exclusive: bool
§auto_delete: bool
§nowait: bool
Implementations§
Source§impl QueueSettings
impl QueueSettings
Sourcepub fn new(name: String) -> QueueSettings
pub fn new(name: String) -> QueueSettings
Default settings with all fields set to false
Sourcepub fn new_durable(name: String) -> QueueSettings
pub fn new_durable(name: String) -> QueueSettings
Default settings with all fields set to false
except durable
Trait Implementations§
Source§impl From<&QueueSettings> for QueueDeclareOptions
impl From<&QueueSettings> for QueueDeclareOptions
Source§fn from(settings: &QueueSettings) -> Self
fn from(settings: &QueueSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueueSettings
impl RefUnwindSafe for QueueSettings
impl Send for QueueSettings
impl Sync for QueueSettings
impl Unpin for QueueSettings
impl UnwindSafe for QueueSettings
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