Struct fastcgi_client::client::Client [−][src]
Async client for handling communication between fastcgi server.
Implementations
impl<S: AsyncRead + AsyncWrite + Send + Sync + Unpin> Client<S>
[src]
pub fn new(stream: S, keep_alive: bool) -> Self
[src]
Construct a Client
Object with stream, such as tokio::net::TcpStream
or tokio::net::UnixStream
.
pub async fn execute<I: AsyncRead + Unpin>(
&mut self,
request: Request<'_, I>
) -> ClientResult<Response>
[src]
&mut self,
request: Request<'_, I>
) -> ClientResult<Response>
Send request and receive response from fastcgi server.
Auto Trait Implementations
impl<S> !RefUnwindSafe for Client<S>
impl<S> Send for Client<S>
impl<S> Sync for Client<S>
impl<S> Unpin for Client<S>
impl<S> !UnwindSafe for Client<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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 = Infallible
The type returned in the event of a conversion error.
pub 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>,