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§
Sourcefn begin_disclosure(&self, _task: &Task, _amendment: Option<&AmendRequest>)
fn begin_disclosure(&self, _task: &Task, _amendment: Option<&AmendRequest>)
Scope the disclosure to the task incarnation under mutation admission.
Sourcefn requires_unchanged_disclosure(&self) -> bool
fn requires_unchanged_disclosure(&self) -> bool
Exact approvals must also notice when previously disclosed changes have been saved.
Sourcefn disclose(
&self,
_participant: &str,
_observation: &RemovalObservation,
) -> impl Future<Output = Result<(), Problem>> + Send
fn disclose( &self, _participant: &str, _observation: &RemovalObservation, ) -> impl Future<Output = Result<(), Problem>> + Send
Report removal facts before asking for a decision.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".