pub enum DeqMode {
Browse,
Locked,
Remove,
RemoveNoData,
}
Available on crate feature
aq_unstable
only.Expand description
Modes that are possible when dequeuing messages from a queue
Warning: The type is unstable. It may be changed incompatibly by minor version upgrades.
Variants§
Browse
Read the message without acquiring a lock on the message(equivalent to a SELECT statement).
Locked
Read the message and obtain a write lock on the message (equivalent to a SELECT FOR UPDATE statement).
Remove
Read the message and update or delete it. This is the default mode. Note that the message may be retained in the queue table based on retention properties.
RemoveNoData
Confirms receipt of the message but does not deliver the actual message content.
Trait Implementations§
impl Eq for DeqMode
impl StructuralPartialEq for DeqMode
Auto Trait Implementations§
impl Freeze for DeqMode
impl RefUnwindSafe for DeqMode
impl Send for DeqMode
impl Sync for DeqMode
impl Unpin for DeqMode
impl UnwindSafe for DeqMode
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