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]

[src]

[src]

[src]

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

[src]

Consume and return response with body.

[src]

Abort and replace self with an empty call.

[src]

Consume and abort call.

[src]

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

[src]

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

[src]

Is request finished.

[src]

Perform operation. Returns true if request is finished.

[src]

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.

[src]

Trait Implementations

impl From<Call> for SimpleCall
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for SimpleCall

impl Sync for SimpleCall