pub struct OutboxProcessor<S, T> { /* private fields */ }Implementations§
Source§impl<S, T> OutboxProcessor<S, T>where
S: OutboxStorage + 'static,
T: Transport + 'static,
impl<S, T> OutboxProcessor<S, T>where
S: OutboxStorage + 'static,
T: Transport + 'static,
pub fn new( storage: Arc<S>, publisher: Arc<T>, config: Arc<OutboxConfig>, ) -> 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> Freeze for OutboxProcessor<S, T>
impl<S, T> RefUnwindSafe for OutboxProcessor<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for OutboxProcessor<S, T>
impl<S, T> Sync for OutboxProcessor<S, T>
impl<S, T> Unpin for OutboxProcessor<S, T>
impl<S, T> UnsafeUnpin for OutboxProcessor<S, T>
impl<S, T> UnwindSafe for OutboxProcessor<S, T>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