pub struct ScopedOutboxStore { /* private fields */ }Implementations§
Source§impl ScopedOutboxStore
impl ScopedOutboxStore
pub fn new(inner: Arc<dyn OutboxStore>, scope_id: ScopeId) -> ScopedOutboxStore
pub fn scope_id(&self) -> &ScopeId
pub fn inner(&self) -> &dyn OutboxStore
Trait Implementations§
Source§impl Clone for ScopedOutboxStore
impl Clone for ScopedOutboxStore
Source§fn clone(&self) -> ScopedOutboxStore
fn clone(&self) -> ScopedOutboxStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl OutboxStore for ScopedOutboxStore
impl OutboxStore for ScopedOutboxStore
Source§fn enqueue_outbox<'life0, 'async_trait>(
&'life0 self,
draft: OutboxMessageDraft,
) -> Pin<Box<dyn Future<Output = Result<OutboxEnqueueResult, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
ScopedOutboxStore: 'async_trait,
fn enqueue_outbox<'life0, 'async_trait>(
&'life0 self,
draft: OutboxMessageDraft,
) -> Pin<Box<dyn Future<Output = Result<OutboxEnqueueResult, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
ScopedOutboxStore: 'async_trait,
Enqueue an outbox row in the backend’s own transaction. Use the
concrete-type transactional method (see trait docs) when the caller
needs to share a transaction with other writes.
fn claim_outbox<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
lane: &'life1 str,
target: &'life2 str,
limit: usize,
lease_ms: u64,
consumer_id: &'life3 str,
now: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<OutboxMessage>, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
ScopedOutboxStore: 'async_trait,
fn ack_outbox<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
outbox_id: &'life1 str,
claim_token: &'life2 str,
now: u64,
) -> Pin<Box<dyn Future<Output = Result<bool, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
ScopedOutboxStore: 'async_trait,
fn nack_outbox<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
outbox_id: &'life1 str,
claim_token: &'life2 str,
error: &'life3 str,
retry_at: u64,
now: u64,
) -> Pin<Box<dyn Future<Output = Result<OutboxNackOutcome, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
ScopedOutboxStore: 'async_trait,
fn list_outbox<'life0, 'async_trait>(
&'life0 self,
status: Option<OutboxStatus>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<OutboxMessage>, OutboxError>> + Send + 'async_trait>>where
'life0: 'async_trait,
ScopedOutboxStore: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ScopedOutboxStore
impl !UnwindSafe for ScopedOutboxStore
impl Freeze for ScopedOutboxStore
impl Send for ScopedOutboxStore
impl Sync for ScopedOutboxStore
impl Unpin for ScopedOutboxStore
impl UnsafeUnpin for ScopedOutboxStore
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more