[−][src]Struct curl::multi::Easy2Handle
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]
Same as Easy2::time_condition_unmet
.
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]
Same as Easy2::effective_url_bytes
.
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]
Same as Easy2::http_connectcode
.
pub fn filetime(&mut self) -> Result<Option<i64>, Error>
[src]
Same as Easy2::filetime
.
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]
Same as Easy2::content_length_download
.
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]
Same as Easy2::namelookup_time
.
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]
Same as Easy2::appconnect_time
.
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]
Same as Easy2::starttransfer_time
.
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]
Same as Easy2::redirect_count
.
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]
Same as Easy2::redirect_url_bytes
.
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]
Same as Easy2::request_size
.
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]
Same as Easy2::content_type_bytes
.
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]
Same as Easy2::primary_ip
.
pub fn primary_port(&mut self) -> Result<u16, Error>
[src]
Same as Easy2::primary_port
.
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]
Same as Easy2::local_port
.
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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,