Skip to main content

Validate

Trait Validate 

Source
pub trait Validate {
    // Required method
    fn validate(&self, ctx: &ValidationContext) -> P2pResult<()>;
}
Expand description

Core validation trait

Required Methods§

Source

fn validate(&self, ctx: &ValidationContext) -> P2pResult<()>

Validate the object with the given context

Implementors§