pub struct Projector { /* private fields */ }Implementations§
Source§impl Projector
impl Projector
pub fn new( view_index: Arc<ViewIndex>, bus_manager: BusManager, entity_cache: EntityCache, mutations_rx: Receiver<MutationBatch>, ) -> Self
Sourcepub fn with_snapshot_runtime(self, snapshot_runtime: SnapshotRuntime) -> Self
pub fn with_snapshot_runtime(self, snapshot_runtime: SnapshotRuntime) -> Self
Associate projection progress with one server’s snapshot lifecycle.
Sourcepub fn with_journal(self, journal: Arc<EventJournal>) -> Self
pub fn with_journal(self, journal: Arc<EventJournal>) -> Self
Retain published events for replayable append subscriptions.
Sourcepub fn with_entity_resync(self, resync: EntityResync) -> Self
pub fn with_entity_resync(self, resync: EntityResync) -> Self
Ask the VM linked to resync for whole entities the cache refused.
pub async fn run(self)
Auto Trait Implementations§
impl !Freeze for Projector
impl !RefUnwindSafe for Projector
impl !UnwindSafe for Projector
impl Forget for Projector
impl Move for Projector
impl Send for Projectorwhere
Arc<ViewIndex>: Send,
Arc<RwLock<HashMap<(String, String), Sender<StateUpdate>>>>: Send,
Arc<RwLock<HashMap<String, Sender<Arc<BusMessage>>>>>: Send,
Arc<RwLock<HashMap<String, ViewEntries>>>: Send,
Arc<Chan<MutationBatch, Semaphore>>: Send,
Arc<SnapshotRuntimeState>: Send,
Arc<EventJournal>: Send,
Arc<WholeEntityRequestsInner>: Send,
Arc<Mutex<LruCache<(String, String), RememberedChange>>>: Send,
Arc<Atomic<bool>>: Send,
RawVecInner: Send,
Atomic<u64>: Send,
impl Sync for Projectorwhere
Arc<ViewIndex>: Sync,
Arc<RwLock<HashMap<(String, String), Sender<StateUpdate>>>>: Sync,
Arc<RwLock<HashMap<String, Sender<Arc<BusMessage>>>>>: Sync,
Arc<RwLock<HashMap<String, ViewEntries>>>: Sync,
Arc<Chan<MutationBatch, Semaphore>>: Sync,
Arc<SnapshotRuntimeState>: Sync,
Arc<EventJournal>: Sync,
Arc<WholeEntityRequestsInner>: Sync,
Arc<Mutex<LruCache<(String, String), RememberedChange>>>: Sync,
Arc<Atomic<bool>>: Sync,
RawVecInner: Sync,
Atomic<u64>: Sync,
impl Unpin for Projectorwhere
Arc<ViewIndex>: Unpin,
Arc<RwLock<HashMap<(String, String), Sender<StateUpdate>>>>: Unpin,
Arc<RwLock<HashMap<String, Sender<Arc<BusMessage>>>>>: Unpin,
Arc<RwLock<HashMap<String, ViewEntries>>>: Unpin,
Receiver<MutationBatch>: Unpin,
Arc<SnapshotRuntimeState>: Unpin,
Arc<EventJournal>: Unpin,
Arc<WholeEntityRequestsInner>: Unpin,
Arc<Mutex<LruCache<(String, String), RememberedChange>>>: Unpin,
Arc<Atomic<bool>>: Unpin,
*const u8 is !null: Unpin,
Align8<u64>: Unpin,
impl UnsafeUnpin for Projectorwhere
*const ArcInner<ViewIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<ViewIndex>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<(String, String), Sender<StateUpdate>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<(String, String), Sender<StateUpdate>>>>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, Sender<Arc<BusMessage>>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, Sender<Arc<BusMessage>>>>>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, ViewEntries>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, ViewEntries>>>>: UnsafeUnpin,
*const ArcInner<Chan<MutationBatch, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<MutationBatch, Semaphore>>>: UnsafeUnpin,
*const ArcInner<SnapshotRuntimeState> is !null: UnsafeUnpin,
PhantomData<ArcInner<SnapshotRuntimeState>>: UnsafeUnpin,
*const ArcInner<EventJournal> is !null: UnsafeUnpin,
PhantomData<ArcInner<EventJournal>>: UnsafeUnpin,
*const ArcInner<WholeEntityRequestsInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<WholeEntityRequestsInner>>: UnsafeUnpin,
*const ArcInner<Mutex<LruCache<(String, String), RememberedChange>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<LruCache<(String, String), RememberedChange>>>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align8<u64>: 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