[][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 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.

Trait Implementations

impl<H: Debug> Debug for Easy2Handle<H>[src]

Auto Trait Implementations

impl<H> !Send for Easy2Handle<H>

impl<H> !Sync for Easy2Handle<H>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]