Skip to main content

Module document

Module document 

Source
Expand description

The reply document a reply’s frames rebuild. Every Wire names one Reassemble type. The driver hands it each frame of a reply whose transport reported no whole document, before the decoder reads the frame, 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, &"frame".to_owned());
assert!(Reassemble::<String>::finish(document).is_null());

Structs§

Unreassembled
The reassembler of a wire whose decoders record raw themselves, which only an operation with Free events can: it records nothing.

Traits§

Reassemble
Rebuilds one reply’s provider document from the frames it arrived in.
Serves
The operations whose wires may name a reassembler: a wire’s Reassembler must serve its operation.