[][src]Struct stry_evermore::Worker

pub struct Worker<D> where
    D: Clone
{ pub data: D, // some fields omitted }

The task worker running this task, stores the users shared data.

This does not allow you to send a shutdown signal or interact with the worker in anyway, it is only used to store user data and the shared stop signal.

Fields

data: D

The users shared data.

Implementations

impl<D> Worker<D> where
    D: Clone
[src]

pub fn should_stop(&self) -> bool[src]

Returns true if the running task should cleanup and shutdown.

Trait Implementations

impl<D> Clone for Worker<D> where
    D: Clone
[src]

impl<D: Debug> Debug for Worker<D> where
    D: Clone
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for Worker<D> where
    D: RefUnwindSafe
[src]

impl<D> Send for Worker<D> where
    D: Send
[src]

impl<D> Sync for Worker<D> where
    D: Sync
[src]

impl<D> Unpin for Worker<D> where
    D: Unpin
[src]

impl<D> UnwindSafe for Worker<D> where
    D: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.