pub type ImportResult<Ctx> = Result<Option<Summary<<Ctx as Context>::Digest, <Ctx as Context>::GroupId>>, MisbehaviorFor<Ctx>>;
Expand description

Type alias for the result of a statement import.

Aliased Type§

enum ImportResult<Ctx> {
    Ok(Option<Summary<<Ctx as Context>::Digest, <Ctx as Context>::GroupId>>),
    Err(Misbehavior<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::AuthorityId, <Ctx as Context>::Signature>),
}

Variants§

§1.0.0

Ok(Option<Summary<<Ctx as Context>::Digest, <Ctx as Context>::GroupId>>)

Contains the success value

§1.0.0

Err(Misbehavior<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::AuthorityId, <Ctx as Context>::Signature>)

Contains the error value