Struct mio_httpc::SimpleCall[][src]

pub struct SimpleCall { /* fields omitted */ }

Simplified API for non-streaming requests and responses. If body exists it needs to be provided to Request. If response has a body it is returned in Response.

Methods

impl SimpleCall
[src]

Replaces self with an empty SimpleCall and returns result if any.

Consume and return response with body.

Abort and replace self with an empty call.

Consume and abort call.

For quick comparison with httpc::event response. If cid is none will return false.

If using Option in a struct, you can quickly compare callid from httpc::event. If either is none will return false.

Is request finished.

Are we in receiving state

Perform operation. Returns true if request is finished.

An empty SimpleCall not associated with a valid mio::Token/CallId. Exists to be overwritten with an actual valid request. Always returns is_done true.

Trait Implementations

impl From<Call> for SimpleCall
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for SimpleCall

impl Sync for SimpleCall