pub struct Job<T>where
T: AbstractProcess,{
pub process: ProcessRef<T>,
}
Expand description
A job is a process that can be spawned and shutdown.
This type is usually created with the [lucidity::job
] macro on the async methods.
Fields§
§process: ProcessRef<T>
The process reference.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Job<T>
impl<T> RefUnwindSafe for Job<T>
impl<T> Send for Job<T>
impl<T> Sync for Job<T>
impl<T> Unpin for Job<T>
impl<T> UnwindSafe for Job<T>
Blanket Implementations§
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