[][src]Struct curl::multi::Easy2Handle

pub struct Easy2Handle<H> { /* 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<H> Easy2Handle<H>[src]

pub fn get_ref(&self) -> &H[src]

Acquires a reference to the underlying handler for events.

pub fn get_mut(&mut self) -> &mut H[src]

Acquires a reference to the underlying handler for events.

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

Same as EasyHandle::set_token

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<H: Debug> Debug for Easy2Handle<H>[src]

Auto Trait Implementations

impl<H> !Send for Easy2Handle<H>

impl<H> Unpin for Easy2Handle<H>

impl<H> !Sync for Easy2Handle<H>

impl<H> !UnwindSafe for Easy2Handle<H>

impl<H> !RefUnwindSafe for Easy2Handle<H>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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