pub struct CallbackWaker<F>{ /* private fields */ }Expand description
A waker that uses a callback function.
This is useful for integrating with custom event loop systems.
Implementations§
Trait Implementations§
Source§impl<F> Clone for CallbackWaker<F>
impl<F> Clone for CallbackWaker<F>
Source§impl<F> EventLoopWaker for CallbackWaker<F>
impl<F> EventLoopWaker for CallbackWaker<F>
Auto Trait Implementations§
impl<F> Freeze for CallbackWaker<F>where
F: Freeze,
impl<F> RefUnwindSafe for CallbackWaker<F>where
F: RefUnwindSafe,
impl<F> Send for CallbackWaker<F>
impl<F> Sync for CallbackWaker<F>
impl<F> Unpin for CallbackWaker<F>where
F: Unpin,
impl<F> UnwindSafe for CallbackWaker<F>where
F: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMetered for T
impl<T> IntoMetered for T
Source§fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
Wrap this sender with metrics tracking.
Source§impl<T> WithMetrics for T
impl<T> WithMetrics for T
Source§fn with_metrics(self) -> MeteredWrapper<Self>
fn with_metrics(self) -> MeteredWrapper<Self>
Wrap this channel with metrics tracking.