pub trait Reassemble<Frame>:
Default
+ WasmCompatSend
+ 'static {
// Required methods
fn absorb(&mut self, frame: &Frame);
fn finish(self) -> Value;
}Expand description
Rebuilds one reply’s provider document from the frames it arrived in.
A fresh value per reply. absorb sees every frame the driver reads, in
arrival order, including frames the decoder classifies as unknown or
corrupt. finish runs once, when the reply ends, fails or is cut
short; a reply that did not end yields the document so far.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Reassemble<MockFrame> for MockDocument
Available on crate feature
test-utils only.