[−][src]Struct lunatic::process::Process
A process consists of its own stack and heap. It can only share data with other processes by exchanging the data with messages passing.
Implementations
impl Process
[src]
pub fn spawn<'de, T>(
context: T,
function: fn(_: T)
) -> Result<Process, SpawnError> where
T: Serialize + Deserialize<'de>,
[src]
context: T,
function: fn(_: T)
) -> Result<Process, SpawnError> where
T: Serialize + Deserialize<'de>,
Spawn a new process from a function and cotext.
function
is going to be starting point of the new process.
context
is some data that we want to pass to the newly spawned process.
pub fn join(self)
[src]
Wait on a process to finish.
Trait Implementations
Auto Trait Implementations
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,
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, 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>,