pub trait Answer: Send + Sync {
// Required methods
fn issued(&self);
fn answer(&self, call: &DomainCall, outcome: DomainOutcome);
}Expand description
Where a completion’s answer goes: the instance that made the request.
Required Methods§
Sourcefn issued(&self)
fn issued(&self)
A completion was made: it is unanswered until answer is called for it,
which its drop does if nothing else has.
Sourcefn answer(&self, call: &DomainCall, outcome: DomainOutcome)
fn answer(&self, call: &DomainCall, outcome: DomainOutcome)
Record call’s answer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".