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

§hiddenmsgs: u64

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

source§

fn clone(&self) -> RsmqQueueAttributes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RsmqQueueAttributes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more