[−][src]Struct mirai::SourceWaker
This is a split waker, meant for being able to wake Reads and Writes separately.
Methods
impl SourceWaker
[src]
pub fn wake(&self, event: &Event)
[src]
pub fn get_read_waker(&self) -> Arc<AtomicWaker>
[src]
pub fn get_write_waker(&self) -> Arc<AtomicWaker>
[src]
pub fn register_waker(&self, waker: &Waker)
[src]
If you are writing a Future and need to wake on either Read or Write, use this function to
register the Waker. Otherwise, use [get_read_waker
] or [get_write_waker
] respectively.
Trait Implementations
impl Clone for SourceWaker
[src]
fn clone(&self) -> SourceWaker
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SourceWaker
[src]
fn default() -> SourceWaker
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SourceWaker
impl Send for SourceWaker
impl Sync for SourceWaker
impl Unpin for SourceWaker
impl !UnwindSafe for SourceWaker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,