Skip to main content

EmptyBuilder

Trait EmptyBuilder 

Source
pub trait EmptyBuilder<B> {
    // Required method
    fn empty(self) -> Result<Response<B>>;
}
Expand description

Adds a convenience method to consume a Builder with an empty body.

Required Methods§

Source

fn empty(self) -> Result<Response<B>>

Consume the builder with an empty body.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EmptyBuilder<Body> for Builder

Available on crate feature hyper_body only.

Implementors§