Struct marid::MaridProcess [] [src]

pub struct MaridProcess {
    // some fields omitted
}

Signifying the running state of a unit of work, a MaridProcess will spawn a new thread in order to not block the current thread.

Upon dropping, an instance of a MaridProcess will join on the running thread, potentially blocking.

Methods

impl MaridProcess

fn start(runner: Box<Runner + Send>, signaler: Sender<Signal>, recv: Receiver<Signal>) -> MaridProcess

Starts the specified runner with the given signal receiver.

Trait Implementations

impl Process for MaridProcess

type Error = ProcessError<MaridError>

fn ready(&self) -> Result<(), Self::Error>

fn wait(&self) -> Result<(), Self::Error>

fn signal(&self, signal: Signal)

impl Drop for MaridProcess

fn drop(&mut self)