[−][src]Struct lunatic::process::Process
A process consists of its own stack and heap. It can only share data with other processes by sending it to them.
Implementations
impl Process
[src]
pub fn spawn<F>(closure: F) -> Result<Process, SpawnError> where
F: FnOnce() + ProcessClosureSend,
[src]
F: FnOnce() + ProcessClosureSend,
Spawn a new process. The passed closure can only capture copy types.
pub fn join(self)
[src]
Wait on a process to finish.
Trait Implementations
Auto Trait Implementations
impl ProcessClosureSend for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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,
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, 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.
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>,