pub struct ReceiptHandle { /* private fields */ }Expand description
Opaque token for acknowledging or rejecting received messages
Implementations§
Source§impl ReceiptHandle
impl ReceiptHandle
Sourcepub fn new(
handle: String,
expires_at: Timestamp,
provider_type: ProviderType,
) -> Self
pub fn new( handle: String, expires_at: Timestamp, provider_type: ProviderType, ) -> Self
Create new receipt handle
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Check if receipt handle is expired
Sourcepub fn time_until_expiry(&self) -> Duration
pub fn time_until_expiry(&self) -> Duration
Get time until expiry
Sourcepub fn provider_type(&self) -> ProviderType
pub fn provider_type(&self) -> ProviderType
Get provider type
Trait Implementations§
Source§impl Clone for ReceiptHandle
impl Clone for ReceiptHandle
Source§fn clone(&self) -> ReceiptHandle
fn clone(&self) -> ReceiptHandle
Returns a duplicate 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 moreSource§impl Debug for ReceiptHandle
impl Debug for ReceiptHandle
Source§impl PartialEq for ReceiptHandle
impl PartialEq for ReceiptHandle
impl Eq for ReceiptHandle
impl StructuralPartialEq for ReceiptHandle
Auto Trait Implementations§
impl Freeze for ReceiptHandle
impl RefUnwindSafe for ReceiptHandle
impl Send for ReceiptHandle
impl Sync for ReceiptHandle
impl Unpin for ReceiptHandle
impl UnsafeUnpin for ReceiptHandle
impl UnwindSafe for ReceiptHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.