pub struct CrossShellActivityFanout { /* private fields */ }Expand description
Read-only fanout projection for CrossShellActivity. Stores cross-shell
notifications keyed by the target shell — never touches the source
shell’s rows, preserving shell isolation (E-act-2 RA tier).
Implementations§
Source§impl CrossShellActivityFanout
impl CrossShellActivityFanout
Sourcepub fn notifications_for(&self, shell: &ShellId) -> &[CrossShellActivity]
pub fn notifications_for(&self, shell: &ShellId) -> &[CrossShellActivity]
Borrow the notification queue for a shell (read-only).
Trait Implementations§
Source§impl Debug for CrossShellActivityFanout
impl Debug for CrossShellActivityFanout
Source§impl Default for CrossShellActivityFanout
impl Default for CrossShellActivityFanout
Source§impl Projection for CrossShellActivityFanout
impl Projection for CrossShellActivityFanout
Source§fn observes(&self) -> &[TypeCode]
fn observes(&self) -> &[TypeCode]
TypeCodes this projection observes — the router filters incoming
events against this slice.
Source§fn on_event(
&mut self,
event: &EventRecord,
_ctx: &ProjectionContext<'_>,
) -> Result<(), ProjectionError>
fn on_event( &mut self, event: &EventRecord, _ctx: &ProjectionContext<'_>, ) -> Result<(), ProjectionError>
Apply an event. Called only after router-side dedup + gap checks
have succeeded. Implementations must: Read more
Source§fn last_applied(&self) -> Option<(u64, Tick)>
fn last_applied(&self) -> Option<(u64, Tick)>
Last
(sequence, tick) applied — None if the projection is fresh.Source§fn on_state_change(
&mut self,
_new_state: ObserverState,
) -> Result<(), ProjectionError>
fn on_state_change( &mut self, _new_state: ObserverState, ) -> Result<(), ProjectionError>
React to a worker-state transition (Passive ↔ Active ↔ Draining).
Default is no-op.
Auto Trait Implementations§
impl Freeze for CrossShellActivityFanout
impl RefUnwindSafe for CrossShellActivityFanout
impl Send for CrossShellActivityFanout
impl Sync for CrossShellActivityFanout
impl Unpin for CrossShellActivityFanout
impl UnsafeUnpin for CrossShellActivityFanout
impl UnwindSafe for CrossShellActivityFanout
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