Struct curl::multi::Easy2Handle
source · [−]pub struct Easy2Handle<H> { /* private fields */ }
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
sourceimpl<H> Easy2Handle<H>
impl<H> Easy2Handle<H>
sourcepub fn time_condition_unmet(&mut self) -> Result<bool, Error>
pub fn time_condition_unmet(&mut self) -> Result<bool, Error>
Same as Easy2::time_condition_unmet
.
sourcepub fn effective_url(&mut self) -> Result<Option<&str>, Error>
pub fn effective_url(&mut self) -> Result<Option<&str>, Error>
Same as Easy2::effective_url
.
sourcepub fn effective_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
pub fn effective_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
Same as Easy2::effective_url_bytes
.
sourcepub fn response_code(&mut self) -> Result<u32, Error>
pub fn response_code(&mut self) -> Result<u32, Error>
Same as Easy2::response_code
.
sourcepub fn http_connectcode(&mut self) -> Result<u32, Error>
pub fn http_connectcode(&mut self) -> Result<u32, Error>
Same as Easy2::http_connectcode
.
sourcepub fn download_size(&mut self) -> Result<f64, Error>
pub fn download_size(&mut self) -> Result<f64, Error>
Same as Easy2::download_size
.
sourcepub fn content_length_download(&mut self) -> Result<f64, Error>
pub fn content_length_download(&mut self) -> Result<f64, Error>
Same as Easy2::content_length_download
.
sourcepub fn total_time(&mut self) -> Result<Duration, Error>
pub fn total_time(&mut self) -> Result<Duration, Error>
Same as Easy2::total_time
.
sourcepub fn namelookup_time(&mut self) -> Result<Duration, Error>
pub fn namelookup_time(&mut self) -> Result<Duration, Error>
Same as Easy2::namelookup_time
.
sourcepub fn connect_time(&mut self) -> Result<Duration, Error>
pub fn connect_time(&mut self) -> Result<Duration, Error>
Same as Easy2::connect_time
.
sourcepub fn appconnect_time(&mut self) -> Result<Duration, Error>
pub fn appconnect_time(&mut self) -> Result<Duration, Error>
Same as Easy2::appconnect_time
.
sourcepub fn pretransfer_time(&mut self) -> Result<Duration, Error>
pub fn pretransfer_time(&mut self) -> Result<Duration, Error>
Same as Easy2::pretransfer_time
.
sourcepub fn starttransfer_time(&mut self) -> Result<Duration, Error>
pub fn starttransfer_time(&mut self) -> Result<Duration, Error>
Same as Easy2::starttransfer_time
.
sourcepub fn redirect_time(&mut self) -> Result<Duration, Error>
pub fn redirect_time(&mut self) -> Result<Duration, Error>
Same as Easy2::redirect_time
.
sourcepub fn redirect_count(&mut self) -> Result<u32, Error>
pub fn redirect_count(&mut self) -> Result<u32, Error>
Same as Easy2::redirect_count
.
sourcepub fn redirect_url(&mut self) -> Result<Option<&str>, Error>
pub fn redirect_url(&mut self) -> Result<Option<&str>, Error>
Same as Easy2::redirect_url
.
sourcepub fn redirect_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
pub fn redirect_url_bytes(&mut self) -> Result<Option<&[u8]>, Error>
Same as Easy2::redirect_url_bytes
.
sourcepub fn header_size(&mut self) -> Result<u64, Error>
pub fn header_size(&mut self) -> Result<u64, Error>
Same as Easy2::header_size
.
sourcepub fn request_size(&mut self) -> Result<u64, Error>
pub fn request_size(&mut self) -> Result<u64, Error>
Same as Easy2::request_size
.
sourcepub fn content_type(&mut self) -> Result<Option<&str>, Error>
pub fn content_type(&mut self) -> Result<Option<&str>, Error>
Same as Easy2::content_type
.
sourcepub fn content_type_bytes(&mut self) -> Result<Option<&[u8]>, Error>
pub fn content_type_bytes(&mut self) -> Result<Option<&[u8]>, Error>
Same as Easy2::content_type_bytes
.
sourcepub fn primary_ip(&mut self) -> Result<Option<&str>, Error>
pub fn primary_ip(&mut self) -> Result<Option<&str>, Error>
Same as Easy2::primary_ip
.
sourcepub fn primary_port(&mut self) -> Result<u16, Error>
pub fn primary_port(&mut self) -> Result<u16, Error>
Same as Easy2::primary_port
.
sourcepub fn local_port(&mut self) -> Result<u16, Error>
pub fn local_port(&mut self) -> Result<u16, Error>
Same as Easy2::local_port
.
Same as Easy2::cookies
.
sourcepub fn unpause_read(&self) -> Result<(), Error>
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.
sourcepub fn unpause_write(&self) -> Result<(), Error>
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.
Trait Implementations
Auto Trait Implementations
impl<H> !RefUnwindSafe for Easy2Handle<H>
impl<H> !Send for Easy2Handle<H>
impl<H> !Sync for Easy2Handle<H>
impl<H> Unpin for Easy2Handle<H>
impl<H> !UnwindSafe for Easy2Handle<H>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more