Struct tokio_scgi::server::SCGICodec[][src]

pub struct SCGICodec { /* fields omitted */ }

A Codec implementation that parses SCGI requests for SCGI servers like backend services. The Decoder parses and returns SCGIRequest objects containing header/body request data from an SCGI client such as a frontend web server. The Encoder passes through the raw response to be sent back to the SCGI client.

Implementations

impl SCGICodec[src]

pub fn new() -> SCGICodec[src]

Returns a client SCGICodec for accepting and parsing SCGI-format requests by SCGI servers like backend services.

Trait Implementations

impl Clone for SCGICodec[src]

impl Debug for SCGICodec[src]

impl Decoder for SCGICodec[src]

Decodes SCGI-format requests, while forwarding through any content payload

type Item = SCGIRequest

The type of decoded frames.

type Error = Error

The type of unrecoverable frame decoding errors. Read more

impl Encoder<Vec<u8, Global>> for SCGICodec[src]

Forwards a raw response to an SCGI request back to the client.

type Error = Error

The type of encoding errors. Read more

impl Eq for SCGICodec[src]

impl PartialEq<SCGICodec> for SCGICodec[src]

impl StructuralEq for SCGICodec[src]

impl StructuralPartialEq for SCGICodec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.