spacegate_plugin

Trait 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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl SgResponseExt for Response<SgBody>

Implementors§