pub struct MultiWaker { /* private fields */ }
Expand description
A handle that can be used to wake up a thread that’s blocked in Multi::poll. The handle can be passed to and used from any thread.
Implementations§
Source§impl MultiWaker
impl MultiWaker
Sourcepub fn wakeup(&self) -> Result<(), MultiError>
pub fn wakeup(&self) -> Result<(), MultiError>
Wakes up a thread that is blocked in Multi::poll. This method can be invoked from any thread.
Will return an error if the RawMulti has already been dropped.
Requires libcurl 7.68.0 or later.
Trait Implementations§
Source§impl Clone for MultiWaker
impl Clone for MultiWaker
Source§fn clone(&self) -> MultiWaker
fn clone(&self) -> MultiWaker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MultiWaker
impl Debug for MultiWaker
impl Send for MultiWaker
impl Sync for MultiWaker
Auto Trait Implementations§
impl Freeze for MultiWaker
impl RefUnwindSafe for MultiWaker
impl Unpin for MultiWaker
impl UnwindSafe for MultiWaker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more