pub enum OutboxState {
Pending {
attempt_count: OutboxAttemptCount,
next_attempt_after: OutboxNextAttemptAt,
},
Leased {
attempt_count: OutboxAttemptCount,
next_attempt_after: OutboxNextAttemptAt,
lease_owner: OutboxRelayInstance,
lease_until: OutboxLeaseExpiresAt,
},
Published {
published_at: OutboxPublishedAt,
attempt_count: OutboxAttemptCount,
},
}Variants§
Pending
Leased
Fields
§
attempt_count: OutboxAttemptCount§
next_attempt_after: OutboxNextAttemptAt§
lease_owner: OutboxRelayInstance§
lease_until: OutboxLeaseExpiresAtPublished
Implementations§
Source§impl OutboxState
impl OutboxState
pub fn attempt_count(&self) -> OutboxAttemptCount
pub fn next_attempt_after(&self) -> Option<OutboxNextAttemptAt>
pub fn lease_owner(&self) -> Option<&OutboxRelayInstance>
pub fn lease_until(&self) -> Option<OutboxLeaseExpiresAt>
pub fn published_at(&self) -> Option<OutboxPublishedAt>
Trait Implementations§
Source§impl Clone for OutboxState
impl Clone for OutboxState
Source§fn clone(&self) -> OutboxState
fn clone(&self) -> OutboxState
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 OutboxState
impl Debug for OutboxState
Source§impl PartialEq for OutboxState
impl PartialEq for OutboxState
impl Eq for OutboxState
impl StructuralPartialEq for OutboxState
Auto Trait Implementations§
impl Freeze for OutboxState
impl RefUnwindSafe for OutboxState
impl Send for OutboxState
impl Sync for OutboxState
impl Unpin for OutboxState
impl UnwindSafe for OutboxState
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