Skip to main content

RemovalObserver

Trait RemovalObserver 

Source
pub trait RemovalObserver: Observer {
    // Provided methods
    fn begin_disclosure(&self, _task: &Task, _amendment: Option<&AmendRequest>) { ... }
    fn requires_unchanged_disclosure(&self) -> bool { ... }
    fn disclose(
        &self,
        _participant: &str,
        _observation: &RemovalObservation,
    ) -> impl Future<Output = Result<(), Problem>> + Send { ... }
    fn removed(
        &self,
        task: &str,
        participant: &str,
    ) -> impl Future<Output = Result<(), Problem>> + Send { ... }
    fn confirm(
        &self,
        _decision: Decision,
    ) -> impl Future<Output = Result<Option<bool>, Problem>> + Send { ... }
}
Expand description

Receives removal disclosures and requests for consent.

Provided Methods§

Source

fn begin_disclosure(&self, _task: &Task, _amendment: Option<&AmendRequest>)

Scope the disclosure to the task incarnation under mutation admission.

Source

fn requires_unchanged_disclosure(&self) -> bool

Exact approvals must also notice when previously disclosed changes have been saved.

Source

fn disclose( &self, _participant: &str, _observation: &RemovalObservation, ) -> impl Future<Output = Result<(), Problem>> + Send

Report removal facts before asking for a decision.

Source

fn removed( &self, task: &str, participant: &str, ) -> impl Future<Output = Result<(), Problem>> + Send

Forget a completed target before any later discard decision.

Source

fn confirm( &self, _decision: Decision, ) -> impl Future<Output = Result<Option<bool>, Problem>> + Send

Returns None when the interface cannot ask; never silently grants consent.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§