Skip to main content

reply_sealed_with_status

Function reply_sealed_with_status 

Source
pub fn reply_sealed_with_status<T: Encode>(
    value: &T,
    key: SerializationKey,
    status: Status,
) -> Result<Response, Rejection>
Expand description

Seals value with key, attaches the given HTTP status, and returns it as a warp result.

Equivalent to reply!(sealed => value, key => key, status => Status::X).