[][src]Struct procspawn::ProcConfig

pub struct ProcConfig { /* fields omitted */ }

Can be used to configure the process.

Methods

impl ProcConfig[src]

pub fn new() -> ProcConfig[src]

Creates a default proc config.

pub fn config_callback<F: FnOnce() + 'static>(&mut self, f: F) -> &mut Self[src]

Attaches a callback that is used to initializes all processes.

pub fn pass_args(&mut self, enabled: bool) -> &mut Self[src]

Enables or disables argument passing.

By default all arguments are forwarded to the spawned process.

pub fn panic_handling(&mut self, enabled: bool) -> &mut Self[src]

Configure the automatic panic handling.

The default behavior is that panics are caught and that a panic handler is installed.

pub fn capture_backtraces(&mut self, enabled: bool) -> &mut Self[src]

Configures if backtraces should be captured.

The default behavior is that if panic handling is enabled backtraces will be captured.

This requires the backtrace feature.

pub fn resolve_backtraces(&mut self, enabled: bool) -> &mut Self[src]

Controls whether backtraces should be resolved.

pub fn init(&mut self)[src]

Consumes the config and initializes the process.

Trait Implementations

impl Default for ProcConfig[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,