[][src]Struct fastcgi_client::AsyncClient

pub struct AsyncClient<S: AsyncRead + AsyncWrite + Send + Sync + Unpin> { /* fields omitted */ }

Async client for handling communication between fastcgi server.

Methods

impl<S: AsyncRead + AsyncWrite + Send + Sync + Unpin> AsyncClient<S>[src]

pub fn new(stream: S, keep_alive: bool) -> Self[src]

Construct a AsyncClient Object with stream (such as async_std::net::TcpStream or async_std::os::unix::net::UnixStream, with buffered read/write for stream.

pub async fn do_request<'a, '_, '_, '_, '_>(
    &'_ mut self,
    params: &'_ Params<'a>,
    body: &'_ mut (dyn AsyncRead + Unpin)
) -> ClientResult<&'_ mut Output>
[src]

Send request and receive response from fastcgi server.

  • params fastcgi params.
  • body always the http post or put body.

return the output of fastcgi stdout and stderr.

Auto Trait Implementations

impl<S> Send for AsyncClient<S>

impl<S> Sync for AsyncClient<S>

impl<S> Unpin for AsyncClient<S>

impl<S> UnwindSafe for AsyncClient<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for AsyncClient<S> where
    S: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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