Skip to main content

Reply

Type Alias Reply 

Source
pub type Reply = Result<ReplyData, WebError>;
Expand description

A handler’s return type: Ok(ReplyData) for a success payload, or Err(WebError) for an error the framework renders as an HTTP error response. The reply! macro produces the Ok side.

Aliased Type§

pub enum Reply {
    Ok(ReplyData),
    Err(WebError),
}

Variants§

§1.0.0

Ok(ReplyData)

Contains the success value

§1.0.0

Err(WebError)

Contains the error value