pub struct ContextWatch { /* private fields */ }Expand description
The running watcher; stopping or dropping it ends the thread.
Implementations§
Source§impl ContextWatch
impl ContextWatch
Sourcepub fn start<F: ContextFeed + 'static>(
feed: F,
wake: ContextWake,
reporter: Arc<ContextReporter>,
) -> Result<Self, ServiceEffectError>
pub fn start<F: ContextFeed + 'static>( feed: F, wake: ContextWake, reporter: Arc<ContextReporter>, ) -> Result<Self, ServiceEffectError>
Starts the watcher over feed, woken by wake, reporting through
reporter. It drains once at start, then once per wake.
§Errors
The watcher thread could not be spawned.
Trait Implementations§
Source§impl Debug for ContextWatch
impl Debug for ContextWatch
Source§impl Drop for ContextWatch
impl Drop for ContextWatch
Auto Trait Implementations§
impl !RefUnwindSafe for ContextWatch
impl !UnwindSafe for ContextWatch
impl Freeze for ContextWatch
impl Send for ContextWatch
impl Sync for ContextWatch
impl Unpin for ContextWatch
impl UnsafeUnpin for ContextWatch
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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