pub trait WireRenderAdapter: Send + Sync {
// Required method
fn render_terminal(
&self,
value: &WireValue,
caps: TerminalRenderCaps,
) -> Option<String>;
// Provided method
fn render_html(&self, value: &WireValue) -> Option<String> { ... }
}Expand description
Adapter trait for rendering specific wire-value families (errors/content/etc).
Implement this trait to extend the unified render path for custom error object shapes.
Required Methods§
fn render_terminal( &self, value: &WireValue, caps: TerminalRenderCaps, ) -> Option<String>
Provided Methods§
fn render_html(&self, value: &WireValue) -> Option<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".