Struct rsmq_async::RsmqMessage
source · pub struct RsmqMessage<T: TryFrom<RedisBytes> = String> {
pub id: String,
pub message: T,
pub rc: u64,
pub fr: u64,
pub sent: u64,
}
Expand description
A new RSMQ message. You will get this when using pop_message or receive_message methods
Fields§
§id: String
Message id. Used later for change_message_visibility and delete_message
message: T
Message content.
rc: u64
Number of times the message was received by a client
fr: u64
Timestamp (epoch in seconds) of when was this message received
sent: u64
Timestamp (epoch in seconds) of when was this message sent
Trait Implementations§
source§impl<T: Clone + TryFrom<RedisBytes>> Clone for RsmqMessage<T>
impl<T: Clone + TryFrom<RedisBytes>> Clone for RsmqMessage<T>
source§fn clone(&self) -> RsmqMessage<T>
fn clone(&self) -> RsmqMessage<T>
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<T> Freeze for RsmqMessage<T>where
T: Freeze,
impl<T> RefUnwindSafe for RsmqMessage<T>where
T: RefUnwindSafe,
impl<T> Send for RsmqMessage<T>where
T: Send,
impl<T> Sync for RsmqMessage<T>where
T: Sync,
impl<T> Unpin for RsmqMessage<T>where
T: Unpin,
impl<T> UnwindSafe for RsmqMessage<T>where
T: UnwindSafe,
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