Enum nash_protocol::protocol::ProtocolHook[][src]

pub enum ProtocolHook {
    SignAllState(SignAllStates),
    Protocol(NashProtocolRequest),
}
Expand description

Captures and protocol request or pipeline that can be executed in a run_before or run_after hook for the NashProtocol and NashProtocolPipeline traits.

Variants

SignAllState(SignAllStates)

Tuple Fields of SignAllState

0: SignAllStates

Tuple Fields of Protocol

0: NashProtocolRequest

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Implement NashProtocolPipeline for ProtocolHook so that hooks can be run as typical pipelines

State managed by pipeline and used to hold intermediate results and allow the implementer to decide whether the pipeline is over Read more

Wrapper type for all actions this pipeline can take

If you want to limit the amount of concurrency of a pipeline return a Semaphore here

Create initial state for the pipeline

Give next action to take or return None if pipeline is finished. &State needs to be mutable as client may modify itself when producing the next step (e.g., removing and r value generate a signature) Read more

Process the results of a pipeline step

Get results from pipeline or None if the pipeline is not finished

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more