pub trait AsyncVisitor {
type Output;
type Error;
// Required method
fn visit<'data: 'scope, 'scope>(
&'scope mut self,
reader: &'scope mut Reader<'data>,
context: &'scope SourceMap,
) -> impl Future<Output = Result<Self::Output, Self::Error>>;
}Expand description
Scoped carried decoding that can await caller-owned external input without allowing temporary joined bytes or their reader to escape in the result.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".