pub struct OutboxProcessor<S, T, P>{ /* private fields */ }Implementations§
Source§impl<S, T, P> OutboxProcessor<S, T, P>
impl<S, T, P> OutboxProcessor<S, T, P>
pub fn new( storage: Arc<S>, publisher: Arc<T>, config: Arc<OutboxConfig<P>>, ) -> Self
Sourcepub async fn process_pending_events(&self) -> Result<usize, OutboxError>
pub async fn process_pending_events(&self) -> Result<usize, OutboxError>
We receive the event batch and send it to Transport
§Errors
We may get a DB error during fetch or UPDATE. publish errors are only logged.
Auto Trait Implementations§
impl<S, T, P> Freeze for OutboxProcessor<S, T, P>
impl<S, T, P> RefUnwindSafe for OutboxProcessor<S, T, P>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T, P> Send for OutboxProcessor<S, T, P>
impl<S, T, P> Sync for OutboxProcessor<S, T, P>
impl<S, T, P> Unpin for OutboxProcessor<S, T, P>
impl<S, T, P> UnsafeUnpin for OutboxProcessor<S, T, P>
impl<S, T, P> UnwindSafe for OutboxProcessor<S, T, P>where
S: RefUnwindSafe,
T: RefUnwindSafe,
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