Struct curl_easybuilder::EasyBuilder [] [src]

pub struct EasyBuilder { /* fields omitted */ }

The builder struct for curl::easy::Easy handler.

See the API document of curl-rust for detailed descriptions that Easy API provides.

All errors occured during building operations will be stored in a internal Vec, and exposed at finalization, which is when the builder's build() method is called.

Methods

impl EasyBuilder
[src]

Creates a builder.

Examples

use curl_easybuilder::EasyBuilder;

let easy = EasyBuilder::new();

Tests if the builder stores any curl::Error happend during this build.

Finalize the builder and returns mutable reference of Easy wrapped inside a Result.

Examples

use curl_easybuilder::EasyBuilder;

let mut b = EasyBuilder::new();
assert!(b.result().is_ok());