[−][src]Struct stry_evermore::Worker
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]
D: Clone,
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]
D: Clone,
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: Debug> Debug for Worker<D> where
D: Clone,
[src]
D: Clone,
Auto Trait Implementations
impl<D> RefUnwindSafe for Worker<D> where
D: RefUnwindSafe,
[src]
D: RefUnwindSafe,
impl<D> Send for Worker<D> where
D: Send,
[src]
D: Send,
impl<D> Sync for Worker<D> where
D: Sync,
[src]
D: Sync,
impl<D> Unpin for Worker<D> where
D: Unpin,
[src]
D: Unpin,
impl<D> UnwindSafe for Worker<D> where
D: UnwindSafe,
[src]
D: UnwindSafe,
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,