[−][src]Struct procspawn::ProcConfig
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]
fn default() -> ProcConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ProcConfig
impl !Send for ProcConfig
impl !Sync for ProcConfig
impl Unpin for ProcConfig
impl !UnwindSafe for ProcConfig
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,