[−][src]Trait multipart::client::HttpStream
A trait describing an open HTTP stream that can be written to.
Associated Types
type Request: HttpRequest
The request type that opened this stream.
type Response
The response type that will be returned after the request is completed.
type Error: From<Error> + From<<Self::Request as HttpRequest>::Error>
The error type for this stream.
Must be compatible with io::Error
as well as Self::Request::Error
.
Required Methods
fn finish(self) -> Result<Self::Response, Self::Error>
Finalize and close the stream and return the response object, or any error otherwise.
Implementations on Foreign Types
impl HttpStream for Request<Streaming>
[src]
impl HttpStream for Request<Streaming>
type Request = Request<Fresh>
type Response = Response
type Error = HyperError
fn finish(self) -> Result<Self::Response, Self::Error>
[src]
fn finish(self) -> Result<Self::Response, Self::Error>
impl HttpStream for Sink
[src]
impl HttpStream for Sink
type Request = ()
type Response = ()
type Error = Error
fn finish(self) -> Result<Self::Response, Self::Error>
[src]
fn finish(self) -> Result<Self::Response, Self::Error>
Implementors
impl HttpStream for HttpBuffer
[src]
impl HttpStream for HttpBuffer
type Request = ClientRequest
type Response = HttpBuffer
type Error = Error
fn finish(self) -> Result<Self, Error>
[src]
fn finish(self) -> Result<Self, Error>
Returns Ok(self)
.
impl<R: HttpRequest> HttpStream for SizedRequest<R> where
<R::Stream as HttpStream>::Error: From<R::Error>,
[src]
impl<R: HttpRequest> HttpStream for SizedRequest<R> where
<R::Stream as HttpStream>::Error: From<R::Error>,
type Request = Self
type Response = <<R as HttpRequest>::Stream as HttpStream>::Response
type Error = <<R as HttpRequest>::Stream as HttpStream>::Error
fn finish(self) -> Result<Self::Response, Self::Error>
[src]
fn finish(self) -> Result<Self::Response, Self::Error>