Trait spacegate_plugin::SgResponseExt

source ·
pub trait SgResponseExt {
    // Required method
    fn with_code_message(code: StatusCode, message: impl Into<Bytes>) -> Self;

    // Provided method
    fn bad_gateway<E>(e: E) -> Self
       where E: Error,
             Self: Sized { ... }
}
Expand description

Provides extension methods for Response.

Required Methods§

source

fn with_code_message(code: StatusCode, message: impl Into<Bytes>) -> Self

Provided Methods§

source

fn bad_gateway<E>(e: E) -> Self
where E: Error, Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SgResponseExt for Response<SgBody>

Implementors§