pub trait AsHeaderValidator<H>: HeaderValidator<H> {
// Required method
fn as_header_validator<'a>(
self: Arc<Self>,
) -> Arc<dyn HeaderValidator<H> + 'a>
where Self: 'a;
}
Expand description
Helper trait to cast Arc<dyn Consensus>
to Arc<dyn HeaderValidator>
Required Methods§
Sourcefn as_header_validator<'a>(self: Arc<Self>) -> Arc<dyn HeaderValidator<H> + 'a>where
Self: 'a,
fn as_header_validator<'a>(self: Arc<Self>) -> Arc<dyn HeaderValidator<H> + 'a>where
Self: 'a,
Converts the Arc
of self to Arc
of HeaderValidator