pub trait FromPayload: Sized {
// Required method
fn from_payload(payload: Payload, origin: &Origin) -> Result<Self>;
}Expand description
Results of a portable call. Decoding runs inside the provider’s managed call, before the kernel invocation finishes, so ownership exists before delivery can fail.
Required Methods§
fn from_payload(payload: Payload, origin: &Origin) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".