Skip to main content

HookSet

Trait HookSet 

Source
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§

Source

type Az: Authorizer

Stage 2.

Source

type Ad: Admission

Stage 3.

Source

type Pr: PreReceive

Stage 5.

Source

type Rs: ReceiptSigner

Stage 7.

Source

type Os: OutcomeSink

Stage 8.

Required Methods§

Source

fn authorizer(&self) -> &Self::Az

The authorizer.

Source

fn admission(&self) -> &Self::Ad

The admission step.

Source

fn pre_receive(&self) -> &Self::Pr

The pre-receive checks.

Source

fn receipts(&self) -> &Self::Rs

The receipt signer.

Source

fn outcomes(&self) -> &Self::Os

The outcome sink.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Az, Ad, Pr, Rs, Os> HookSet for Hooks<Az, Ad, Pr, Rs, Os>

Source§

type Az = Az

Source§

type Ad = Ad

Source§

type Pr = Pr

Source§

type Rs = Rs

Source§

type Os = Os