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
Trait Implementations
impl Decoder 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
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<SCGIRequest>, Error>
[src]
pub fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
pub fn framed<T>(self, io: T) -> Framed<T, Self> where
T: AsyncRead + AsyncWrite,
[src]
T: AsyncRead + AsyncWrite,
impl Encoder<Vec<u8, Global>> for SCGICodec
[src]
impl Encoder<Vec<u8, Global>> for SCGICodec
[src]Forwards a raw response to an SCGI request back to the client.
impl StructuralEq for SCGICodec
[src]
impl StructuralEq for SCGICodec
[src]impl StructuralPartialEq for SCGICodec
[src]
impl StructuralPartialEq for SCGICodec
[src]Auto Trait Implementations
impl RefUnwindSafe for SCGICodec
impl RefUnwindSafe for SCGICodec
impl UnwindSafe for SCGICodec
impl UnwindSafe for SCGICodec