ReadyAction

Type Alias ReadyAction 

Source
pub type ReadyAction<ActionHandler, Args, State> = Action<Ready<ActionHandler, Args, State>>;
Expand description

A convenience type for an action ready status.

Aliased Type§

pub struct ReadyAction<ActionHandler, Args, State> { /* private fields */ }

Trait Implementations§

Source§

impl<ActionHandler, Args, State> From<Ready<ActionHandler, Args, State>> for ReadyAction<ActionHandler, Args, State>
where ActionHandler: Handler<Args, State> + Clone + Send + 'static, Args: Clone + Send + 'static, State: Clone + Send + 'static,

Source§

fn from(ready: Ready<ActionHandler, Args, State>) -> Self

Converts to this type from the input type.
Source§

impl<ActionHandler, Args, State, IntoFrame> Service<IntoFrame> for ReadyAction<ActionHandler, Args, State>
where IntoFrame: Into<Frame>, ActionHandler: Handler<Args, State> + Clone + 'static, ActionHandler::Future: 'static, State: Clone, Args: Clone,

Source§

type Response = Frame

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = FrameFuture

The future response value.
Source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, frame: IntoFrame) -> Self::Future

Process the request and return the response asynchronously. Read more