Struct curl::multi::EasyHandle

pub struct EasyHandle { /* fields hidden */ }
Documentation

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.

Implementations

impl EasyHandle
pub fn set_token(&mut Self, token: usize) -> Result<(), Error>

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>
pub fn effective_url(&mut Self) -> Result<Option<&str>, Error>
pub fn effective_url_bytes(&mut Self) -> Result<Option<&[u8]>, Error>
pub fn response_code(&mut Self) -> Result<u32, Error>
pub fn http_connectcode(&mut Self) -> Result<u32, Error>
pub fn filetime(&mut Self) -> Result<Option<i64>, Error>

Same as Easy2::filetime.

pub fn download_size(&mut Self) -> Result<f64, Error>
pub fn content_length_download(&mut Self) -> Result<f64, Error>
pub fn total_time(&mut Self) -> Result<Duration, Error>
pub fn namelookup_time(&mut Self) -> Result<Duration, Error>
pub fn connect_time(&mut Self) -> Result<Duration, Error>
pub fn appconnect_time(&mut Self) -> Result<Duration, Error>
pub fn pretransfer_time(&mut Self) -> Result<Duration, Error>
pub fn starttransfer_time(&mut Self) -> Result<Duration, Error>
pub fn redirect_time(&mut Self) -> Result<Duration, Error>
pub fn redirect_count(&mut Self) -> Result<u32, Error>
pub fn redirect_url(&mut Self) -> Result<Option<&str>, Error>
pub fn redirect_url_bytes(&mut Self) -> Result<Option<&[u8]>, Error>
pub fn header_size(&mut Self) -> Result<u64, Error>
pub fn request_size(&mut Self) -> Result<u64, Error>
pub fn content_type(&mut Self) -> Result<Option<&str>, Error>
pub fn content_type_bytes(&mut Self) -> Result<Option<&[u8]>, Error>
pub fn os_errno(&mut Self) -> Result<i32, Error>

Same as Easy2::os_errno.

pub fn primary_ip(&mut Self) -> Result<Option<&str>, Error>
pub fn primary_port(&mut Self) -> Result<u16, Error>
pub fn local_ip(&mut Self) -> Result<Option<&str>, Error>

Same as Easy2::local_ip.

pub fn local_port(&mut Self) -> Result<u16, Error>
pub fn cookies(&mut Self) -> Result<List, Error>

Same as Easy2::cookies.

pub fn unpause_read(&Self) -> Result<(), Error>

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>

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_sys::CURL

Get a pointer to the raw underlying CURL handle.

Trait Implementations

impl Debug for EasyHandle
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

Auto Trait Implementations

impl !Send for EasyHandle
impl !Sync for EasyHandle
impl !UnwindSafe for EasyHandle
impl Unpin for EasyHandle

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>