pub trait GetMarker {
// Required method
fn get_marker() -> FieldMarker;
}Expand description
Trait for retrieving the FieldMarker associated with a type.
Provides a standardized way to retrieve a FieldMarker for a type, allowing the protocol to
identify the structure and layout of data fields during decoding.
Required Methods§
Sourcefn get_marker() -> FieldMarker
fn get_marker() -> FieldMarker
Defines the structure of a type for decoding purposes, supporting both primitive and structured types. It helps getting a marker for a type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.