pub trait CompleteResultPayload: Sized {
const KNOWN_MEMBER_NAMES: &'static [&'static str];
// Required method
fn decode_known_members(
members: &mut TypedCompleteMembers<'_>,
) -> Result<Self, ResultDecodeError>;
}Expand description
Method-specific decoder for a selected core complete result composition.
Implementations declare every method-specific name they own, consume those
names from the raw object, and reject an invalid value at that exact member.
The result codec verifies that no declared name remains before it retains
all other members as inert UnknownResultMembers.
Required Associated Constants§
Sourceconst KNOWN_MEMBER_NAMES: &'static [&'static str]
const KNOWN_MEMBER_NAMES: &'static [&'static str]
All method-specific names owned by this selected complete composition.
Required Methods§
Sourcefn decode_known_members(
members: &mut TypedCompleteMembers<'_>,
) -> Result<Self, ResultDecodeError>
fn decode_known_members( members: &mut TypedCompleteMembers<'_>, ) -> Result<Self, ResultDecodeError>
Consumes and validates this composition’s method-specific members.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".