WireEncode

Trait WireEncode 

Source
pub trait WireEncode {
    // Required method
    fn encode(self) -> impl Future<Output = Result<Bytes, WireError>> + Send;
}

Required Methods§

Source

fn encode(self) -> impl Future<Output = Result<Bytes, WireError>> + Send

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<B> WireEncode for Request<B>
where B::Data: Send + Sync + 'static, B: BodyExt + Send + Sync + 'static, B::Error: Into<Box<dyn Error + Send + Sync>>,

Source§

async fn encode(self) -> Result<Bytes, WireError>

Source§

impl<B> WireEncode for Response<B>
where B::Data: Send + Sync + 'static, B: Body + Clone + Send + Sync + 'static, B::Error: Into<Box<dyn Error + Send + Sync>>,

Source§

async fn encode(self) -> Result<Bytes, WireError>

Implementors§