pub trait HookSet: MaybeSend + MaybeSync {
type Az: Authorizer;
type Ad: Admission;
type Pr: PreReceive;
type Rs: ReceiptSigner;
type Os: OutcomeSink;
// Required methods
fn authorizer(&self) -> &Self::Az;
fn admission(&self) -> &Self::Ad;
fn pre_receive(&self) -> &Self::Pr;
fn receipts(&self) -> &Self::Rs;
fn outcomes(&self) -> &Self::Os;
}Expand description
The hooks the pipeline runs, one associated type per stage.
Required Associated Types§
Sourcetype Az: Authorizer
type Az: Authorizer
Stage 2.
Sourcetype Pr: PreReceive
type Pr: PreReceive
Stage 5.
Sourcetype Rs: ReceiptSigner
type Rs: ReceiptSigner
Stage 7.
Sourcetype Os: OutcomeSink
type Os: OutcomeSink
Stage 8.
Required Methods§
The authorizer.
Sourcefn pre_receive(&self) -> &Self::Pr
fn pre_receive(&self) -> &Self::Pr
The pre-receive checks.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".