pub struct InboxBuilder<E: Send + 'static> { /* private fields */ }Implementations§
Source§impl<E: Send + 'static> InboxBuilder<E>
impl<E: Send + 'static> InboxBuilder<E>
pub fn name(self, n: impl Into<String>) -> Self
Sourcepub fn source(self, rx: UnboundedReceiver<E>) -> Self
pub fn source(self, rx: UnboundedReceiver<E>) -> Self
Inbound message source.
Sourcepub fn handler<F, Fut>(self, f: F) -> Self
pub fn handler<F, Fut>(self, f: F) -> Self
Handler for not-yet-seen messages. Returning true marks the
message as processed; false leaves it unmarked so a
retry can re-attempt processing.
pub fn store<S: InboxStore>(self, store: Arc<S>) -> Self
pub fn build(self) -> Result<InboxTopology<E>, PatternError<()>>
Auto Trait Implementations§
impl<E> Freeze for InboxBuilder<E>
impl<E> !RefUnwindSafe for InboxBuilder<E>
impl<E> Send for InboxBuilder<E>
impl<E> Sync for InboxBuilder<E>
impl<E> Unpin for InboxBuilder<E>
impl<E> UnsafeUnpin for InboxBuilder<E>
impl<E> !UnwindSafe for InboxBuilder<E>
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