pub trait Validate {
// Required method
fn validate(&self, ctx: &ValidationContext) -> P2pResult<()>;
}Expand description
Core validation trait
Required Methods§
Sourcefn validate(&self, ctx: &ValidationContext) -> P2pResult<()>
fn validate(&self, ctx: &ValidationContext) -> P2pResult<()>
Validate the object with the given context