Struct curl::multi::Easy2Handle [−][src]
pub struct Easy2Handle<H> { /* fields omitted */ }
Expand description
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<H> Easy2Handle<H>
[src]
impl<H> Easy2Handle<H>
[src]pub fn time_condition_unmet(&mut self) -> Result<bool, Error>
[src]
pub fn time_condition_unmet(&mut self) -> Result<bool, Error>
[src]Same as Easy2::time_condition_unmet
.
pub fn effective_url(&mut self) -> Result<Option<&str>, Error>
[src]
pub fn effective_url(&mut self) -> Result<Option<&str>, Error>
[src]Same as Easy2::effective_url
.
pub fn effective_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]
pub fn effective_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]Same as Easy2::effective_url_bytes
.
pub fn response_code(&mut self) -> Result<u32, Error>
[src]
pub fn response_code(&mut self) -> Result<u32, Error>
[src]Same as Easy2::response_code
.
pub fn http_connectcode(&mut self) -> Result<u32, Error>
[src]
pub fn http_connectcode(&mut self) -> Result<u32, Error>
[src]Same as Easy2::http_connectcode
.
pub fn download_size(&mut self) -> Result<f64, Error>
[src]
pub fn download_size(&mut self) -> Result<f64, Error>
[src]Same as Easy2::download_size
.
pub fn content_length_download(&mut self) -> Result<f64, Error>
[src]
pub fn content_length_download(&mut self) -> Result<f64, Error>
[src]Same as Easy2::content_length_download
.
pub fn total_time(&mut self) -> Result<Duration, Error>
[src]
pub fn total_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::total_time
.
pub fn namelookup_time(&mut self) -> Result<Duration, Error>
[src]
pub fn namelookup_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::namelookup_time
.
pub fn connect_time(&mut self) -> Result<Duration, Error>
[src]
pub fn connect_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::connect_time
.
pub fn appconnect_time(&mut self) -> Result<Duration, Error>
[src]
pub fn appconnect_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::appconnect_time
.
pub fn pretransfer_time(&mut self) -> Result<Duration, Error>
[src]
pub fn pretransfer_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::pretransfer_time
.
pub fn starttransfer_time(&mut self) -> Result<Duration, Error>
[src]
pub fn starttransfer_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::starttransfer_time
.
pub fn redirect_time(&mut self) -> Result<Duration, Error>
[src]
pub fn redirect_time(&mut self) -> Result<Duration, Error>
[src]Same as Easy2::redirect_time
.
pub fn redirect_count(&mut self) -> Result<u32, Error>
[src]
pub fn redirect_count(&mut self) -> Result<u32, Error>
[src]Same as Easy2::redirect_count
.
pub fn redirect_url(&mut self) -> Result<Option<&str>, Error>
[src]
pub fn redirect_url(&mut self) -> Result<Option<&str>, Error>
[src]Same as Easy2::redirect_url
.
pub fn redirect_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]
pub fn redirect_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]Same as Easy2::redirect_url_bytes
.
pub fn header_size(&mut self) -> Result<u64, Error>
[src]
pub fn header_size(&mut self) -> Result<u64, Error>
[src]Same as Easy2::header_size
.
pub fn request_size(&mut self) -> Result<u64, Error>
[src]
pub fn request_size(&mut self) -> Result<u64, Error>
[src]Same as Easy2::request_size
.
pub fn content_type(&mut self) -> Result<Option<&str>, Error>
[src]
pub fn content_type(&mut self) -> Result<Option<&str>, Error>
[src]Same as Easy2::content_type
.
pub fn content_type_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]
pub fn content_type_bytes(&mut self) -> Result<Option<&[u8]>, Error>
[src]Same as Easy2::content_type_bytes
.
pub fn primary_ip(&mut self) -> Result<Option<&str>, Error>
[src]
pub fn primary_ip(&mut self) -> Result<Option<&str>, Error>
[src]Same as Easy2::primary_ip
.
pub fn primary_port(&mut self) -> Result<u16, Error>
[src]
pub fn primary_port(&mut self) -> Result<u16, Error>
[src]Same as Easy2::primary_port
.
pub fn local_port(&mut self) -> Result<u16, Error>
[src]
pub fn local_port(&mut self) -> Result<u16, Error>
[src]Same as Easy2::local_port
.
pub fn unpause_read(&self) -> Result<(), Error>
[src]
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]
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.