pub trait FromWire: Sized {
// Required method
fn read_wire(reader: &mut WireReader, index: i32) -> Result<Self, WireError>;
// Provided method
fn read_result_payload(
reader: &mut WireReader,
index: Option<i32>,
) -> Result<Self, WireError> { ... }
}Expand description
Decode a concrete value, consuming every visited wire node exactly once.
Required Methods§
Provided Methods§
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".