pub struct ProcessWorkObserver { /* private fields */ }Implementations§
Source§impl ProcessWorkObserver
impl ProcessWorkObserver
pub fn new(registry: Arc<dyn ProcessRegistry>) -> Self
pub async fn snapshot_for_session( &self, session_id: impl Into<String>, ) -> Result<ProcessWorkSnapshot, PluginError>
pub async fn process(&self, process_id: &str) -> Option<ObservedProcess>
pub async fn list( &self, filter: &ProcessListFilter, ) -> Result<Vec<ObservedProcess>, PluginError>
Sourcepub async fn list_granted_to(
&self,
scope: &SessionScope,
filter: &ProcessListFilter,
) -> Result<Vec<ObservedProcess>, PluginError>
pub async fn list_granted_to( &self, scope: &SessionScope, filter: &ProcessListFilter, ) -> Result<Vec<ObservedProcess>, PluginError>
List processes a session may address — the grant filter (ADR 0019 /
process design grill). “Granted to” is the security lens: a process is
visible here only if scope holds a handle grant for it. This is the
single home for the grant-scoped view; the session facade sugar is a thin
caller of this method, never a parallel implementation.
Sourcepub async fn list_originated_by(
&self,
scope: &SessionScope,
filter: &ProcessListFilter,
) -> Result<Vec<ObservedProcess>, PluginError>
pub async fn list_originated_by( &self, scope: &SessionScope, filter: &ProcessListFilter, ) -> Result<Vec<ObservedProcess>, PluginError>
List processes a session originated — the provenance filter (ADR 0019 /
process design grill). “Originated by” is the lineage lens, distinct from
the grant lens: a process matches when its recorded originator is a
session whose id equals scope.session_id (and its agent frame, when
scope names one), regardless of who currently holds a grant.
pub async fn events_after( &self, process_id: &str, after_sequence: u64, ) -> Result<Vec<ObservedProcessEvent>, PluginError>
Trait Implementations§
Source§impl Clone for ProcessWorkObserver
impl Clone for ProcessWorkObserver
Source§fn clone(&self) -> ProcessWorkObserver
fn clone(&self) -> ProcessWorkObserver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProcessWorkObserver
impl !UnwindSafe for ProcessWorkObserver
impl Freeze for ProcessWorkObserver
impl Send for ProcessWorkObserver
impl Sync for ProcessWorkObserver
impl Unpin for ProcessWorkObserver
impl UnsafeUnpin for ProcessWorkObserver
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