[−][src]Enum nash_protocol::protocol::ProtocolHook
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)Protocol(NashProtocolRequest)Trait Implementations
impl Clone for ProtocolHook[src]
pub fn clone(&self) -> ProtocolHook[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ProtocolHook[src]
impl NashProtocolPipeline for ProtocolHook[src]
Implement NashProtocolPipeline for ProtocolHook so that hooks can be run as typical pipelines
type PipelineState = ProtocolHookState
State managed by pipeline and used to hold intermediate results and allow the implementer to decide whether the pipeline is over Read more
type ActionType = NashProtocolRequest
Wrapper type for all actions this pipeline can take
pub fn init_state<'life0, 'async_trait>(
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Self::PipelineState> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Self::PipelineState> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn next_step<'life0, 'life1, 'async_trait>(
&'life0 self,
pipeline_state: &'life1 Self::PipelineState,
client_state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Self::ActionType>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
pipeline_state: &'life1 Self::PipelineState,
client_state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Self::ActionType>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn process_step<'life0, 'life1, 'async_trait>(
&'life0 self,
result: <NashProtocolRequest as NashProtocol>::Response,
pipeline_state: &'life1 mut Self::PipelineState
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
result: <NashProtocolRequest as NashProtocol>::Response,
pipeline_state: &'life1 mut Self::PipelineState
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn output(
&self,
pipeline_state: Self::PipelineState
) -> Result<ResponseOrError<NashProtocolResponse>>[src]
&self,
pipeline_state: Self::PipelineState
) -> Result<ResponseOrError<NashProtocolResponse>>
pub fn run_before<'life0, 'async_trait>(
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ProtocolHook>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ProtocolHook>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn run_after<'life0, 'async_trait>(
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ProtocolHook>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ProtocolHook>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for ProtocolHook
impl Send for ProtocolHook
impl Sync for ProtocolHook
impl Unpin for ProtocolHook
impl UnwindSafe for ProtocolHook
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,