Skip to main content

Answer

Trait Answer 

Source
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§

Source

fn issued(&self)

A completion was made: it is unanswered until answer is called for it, which its drop does if nothing else has.

Source

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".

Implementors§