Struct rsmq_async::RsmqQueueAttributes
source · pub struct RsmqQueueAttributes {
pub vt: Duration,
pub delay: Duration,
pub maxsize: i64,
pub totalrecv: u64,
pub totalsent: u64,
pub created: u64,
pub modified: u64,
pub msgs: u64,
pub hiddenmsgs: u64,
}
Expand description
Struct defining a queue. They are set on “create_queue” and “set_queue_attributes”
Fields§
§vt: Duration
How long the message will be hidden when is received by a client
delay: Duration
How many second will take until the message is delivered to a client since it was sent
maxsize: i64
Max size of the message in bytes in the queue
totalrecv: u64
Number of messages received by the queue
totalsent: u64
Number of messages sent by the queue
created: u64
When was this queue created. Timestamp (epoch in seconds)
modified: u64
When was this queue last modified. Timestamp (epoch in seconds)
msgs: u64
How many messages the queue contains
How many messages are hidden from the queue. This number depends of the “vt” attribute and messages with a different hidden time modified by “change_message_visibility” method
Trait Implementations§
source§impl Clone for RsmqQueueAttributes
impl Clone for RsmqQueueAttributes
source§fn clone(&self) -> RsmqQueueAttributes
fn clone(&self) -> RsmqQueueAttributes
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for RsmqQueueAttributes
impl RefUnwindSafe for RsmqQueueAttributes
impl Send for RsmqQueueAttributes
impl Sync for RsmqQueueAttributes
impl Unpin for RsmqQueueAttributes
impl UnwindSafe for RsmqQueueAttributes
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