pub struct InboxWorker<D> { /* private fields */ }Expand description
Runs the listeners for activities queued in an inbox’s queue.
Implementations§
Source§impl<D: Clone + Send + Sync + 'static> InboxWorker<D>
impl<D: Clone + Send + Sync + 'static> InboxWorker<D>
Sourcepub fn new(federation: Federation<D>, data: D, queue: SharedQueue) -> Self
pub fn new(federation: Federation<D>, data: D, queue: SharedQueue) -> Self
A worker for the activities queued in queue, running listeners with
data.
pub fn with_config(self, config: InboxWorkerConfig) -> Self
Auto Trait Implementations§
impl<D> !RefUnwindSafe for InboxWorker<D>
impl<D> !UnwindSafe for InboxWorker<D>
impl<D> Freeze for InboxWorker<D>where
D: Freeze,
impl<D> Send for InboxWorker<D>where
D: Send,
impl<D> Sync for InboxWorker<D>where
D: Sync,
impl<D> Unpin for InboxWorker<D>where
D: Unpin,
impl<D> UnsafeUnpin for InboxWorker<D>where
D: UnsafeUnpin,
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