[][src]Struct lunatic::process::Process

pub struct Process { /* fields omitted */ }

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]

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

impl Drop for Process[src]

Auto Trait Implementations

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, 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.