[][src]Struct curl::multi::EasyHandle

pub struct EasyHandle { /* fields omitted */ }

Wrapper around an easy handle while it's owned by a multi handle.

Once an easy handle has been added to a multi handle then it can no longer be used via perform. This handle is also used to remove the easy handle from the multi handle when desired.

Methods

impl EasyHandle[src]

pub fn set_token(&mut self, token: usize) -> Result<(), Error>[src]

Sets an internal private token for this EasyHandle.

This function will set the CURLOPT_PRIVATE field on the underlying easy handle.

pub fn time_condition_unmet(&mut self) -> Result<bool, Error>[src]

pub fn effective_url(&mut self) -> Result<Option<&str>, Error>[src]

pub fn effective_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>[src]

pub fn response_code(&mut self) -> Result<u32, Error>[src]

pub fn http_connectcode(&mut self) -> Result<u32, Error>[src]

pub fn filetime(&mut self) -> Result<Option<i64>, Error>[src]

Same as Easy2::filetime.

pub fn download_size(&mut self) -> Result<f64, Error>[src]

pub fn content_length_download(&mut self) -> Result<f64, Error>[src]

pub fn total_time(&mut self) -> Result<Duration, Error>[src]

pub fn namelookup_time(&mut self) -> Result<Duration, Error>[src]

pub fn connect_time(&mut self) -> Result<Duration, Error>[src]

pub fn appconnect_time(&mut self) -> Result<Duration, Error>[src]

pub fn pretransfer_time(&mut self) -> Result<Duration, Error>[src]

pub fn starttransfer_time(&mut self) -> Result<Duration, Error>[src]

pub fn redirect_time(&mut self) -> Result<Duration, Error>[src]

pub fn redirect_count(&mut self) -> Result<u32, Error>[src]

pub fn redirect_url(&mut self) -> Result<Option<&str>, Error>[src]

pub fn redirect_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>[src]

pub fn header_size(&mut self) -> Result<u64, Error>[src]

pub fn request_size(&mut self) -> Result<u64, Error>[src]

pub fn content_type(&mut self) -> Result<Option<&str>, Error>[src]

pub fn content_type_bytes(&mut self) -> Result<Option<&[u8]>, Error>[src]

pub fn os_errno(&mut self) -> Result<i32, Error>[src]

Same as Easy2::os_errno.

pub fn primary_ip(&mut self) -> Result<Option<&str>, Error>[src]

pub fn primary_port(&mut self) -> Result<u16, Error>[src]

pub fn local_ip(&mut self) -> Result<Option<&str>, Error>[src]

Same as Easy2::local_ip.

pub fn local_port(&mut self) -> Result<u16, Error>[src]

pub fn cookies(&mut self) -> Result<List, Error>[src]

Same as Easy2::cookies.

pub fn unpause_read(&self) -> Result<(), Error>[src]

Unpause reading on a connection.

Using this function, you can explicitly unpause a connection that was previously paused.

A connection can be paused by letting the read or the write callbacks return ReadError::Pause or WriteError::Pause.

The chance is high that you will get your write callback called before this function returns.

pub fn unpause_write(&self) -> Result<(), Error>[src]

Unpause writing on a connection.

Using this function, you can explicitly unpause a connection that was previously paused.

A connection can be paused by letting the read or the write callbacks return ReadError::Pause or WriteError::Pause. A write callback that returns pause signals to the library that it couldn't take care of any data at all, and that data will then be delivered again to the callback when the writing is later unpaused.

pub fn raw(&self) -> *mut CURL[src]

Get a pointer to the raw underlying CURL handle.

Trait Implementations

impl Debug for EasyHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.