pub struct DefaultOutboxRelay<UowFactory, O, F, W, T>where
UowFactory: UnitOfWorkFactory,
O: Outbox,
F: OutboxFetcher<Uow = UowFactory::Uow, Outbox = O>,
W: OutboxWriter<Uow = UowFactory::Uow, Outbox = O>,
T: Topic<O::Message> + Sync,{ /* private fields */ }Implementations§
Source§impl<UowFactory, O, F, W, T> DefaultOutboxRelay<UowFactory, O, F, W, T>where
UowFactory: UnitOfWorkFactory,
O: Outbox,
F: OutboxFetcher<Uow = UowFactory::Uow, Outbox = O>,
W: OutboxWriter<Uow = UowFactory::Uow, Outbox = O>,
T: Topic<O::Message> + Sync,
impl<UowFactory, O, F, W, T> DefaultOutboxRelay<UowFactory, O, F, W, T>where
UowFactory: UnitOfWorkFactory,
O: Outbox,
F: OutboxFetcher<Uow = UowFactory::Uow, Outbox = O>,
W: OutboxWriter<Uow = UowFactory::Uow, Outbox = O>,
T: Topic<O::Message> + Sync,
pub fn new( config: OutboxRelayConfig, topic: T, fetcher: F, writer: W, uow_factory: UowFactory, ) -> Self
Trait Implementations§
Source§impl<UowFactory, O, F, W, T> OutboxRelay for DefaultOutboxRelay<UowFactory, O, F, W, T>where
UowFactory: UnitOfWorkFactory,
O: Outbox,
F: OutboxFetcher<Uow = UowFactory::Uow, Outbox = O>,
W: OutboxWriter<Uow = UowFactory::Uow, Outbox = O>,
T: Topic<O::Message> + Sync,
impl<UowFactory, O, F, W, T> OutboxRelay for DefaultOutboxRelay<UowFactory, O, F, W, T>where
UowFactory: UnitOfWorkFactory,
O: Outbox,
F: OutboxFetcher<Uow = UowFactory::Uow, Outbox = O>,
W: OutboxWriter<Uow = UowFactory::Uow, Outbox = O>,
T: Topic<O::Message> + Sync,
type Outbox = O
fn is_stop_requested(&self) -> bool
fn request_graceful_stop(&mut self)
async fn run_forever(&self) -> Result<(), OutboxRelayError>
async fn run_once(&self) -> Result<OutboxRelayRunReport, OutboxRelayError>
Auto Trait Implementations§
impl<UowFactory, O, F, W, T> !Freeze for DefaultOutboxRelay<UowFactory, O, F, W, T>
impl<UowFactory, O, F, W, T> RefUnwindSafe for DefaultOutboxRelay<UowFactory, O, F, W, T>
impl<UowFactory, O, F, W, T> Send for DefaultOutboxRelay<UowFactory, O, F, W, T>
impl<UowFactory, O, F, W, T> Sync for DefaultOutboxRelay<UowFactory, O, F, W, T>
impl<UowFactory, O, F, W, T> Unpin for DefaultOutboxRelay<UowFactory, O, F, W, T>
impl<UowFactory, O, F, W, T> UnwindSafe for DefaultOutboxRelay<UowFactory, O, F, W, T>
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