[−][src]Struct fastcgi_client::AsyncClient
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]
&'_ mut self,
params: &'_ Params<'a>,
body: &'_ mut (dyn AsyncRead + Unpin)
) -> ClientResult<&'_ mut Output>
Send request and receive response from fastcgi server.
paramsfastcgi params.bodyalways 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,
S: UnwindSafe,
impl<S> RefUnwindSafe for AsyncClient<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,