pub trait WireValidate {
// Required method
fn wire_validate(&self) -> Result<(), WireValidationError>;
}Expand description
Trait for post-deserialization validation of wire protocol payloads.
Implementors check that all Vec<T> and String fields are within
bounds. Returns Ok(()) when all fields pass, or the first violation
encountered.
Required Methods§
Sourcefn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".