Expand description
The reply document a reply’s events rebuild. Every Wire
names one Reassemble type. The driver hands it each event its decoder
classifies as known, of a reply whose transport reported no whole
document, before the decoder decodes the event, and records what it
finishes with as the reply’s raw. A
completion decoder cannot write raw itself, so a streamed reply’s
raw has one owner per wire. A wire names a reassembler only for an
operation it Serves, and Unreassembled, which records nothing,
serves no completion.
use rig_core::wire::document::{Reassemble, Unreassembled};
let mut document = Unreassembled;
Reassemble::<String>::absorb(&mut document, &"event".to_owned());
assert!(Reassemble::<String>::finish(document).is_null());Structs§
- Unreassembled
- The reassembler of a wire whose decoders record
rawthemselves, which only an operation withFreeevents can: it records nothing.
Traits§
- Reassemble
- Rebuilds one reply’s provider document from its decoder’s events.
- Serves
- The operations whose wires may name a reassembler: a wire’s
Reassemblermust serve its operation.