[−][src]Struct libpulse_binding::def::SpawnApi
A structure for the spawn API.
This may be used to integrate auto spawned daemons into your application. For more information
see context::Context::connect
. When spawning a new child process the waitpid()
is used on
the child’s PID. The spawn routine will not block or ignore SIGCHLD signals, since this cannot
be done in a thread compatible way. You might have to do this in prefork/postfork.
Fields
prefork: Option<extern "C" fn()>
Is called just before the fork in the parent process.
postfork: Option<extern "C" fn()>
Is called immediately after the fork in the parent process.
atfork: Option<extern "C" fn()>
Is called immediately after the fork in the child process.
It is not safe to close all file descriptors in this function unconditionally, since a UNIX socket (created using socketpair()) is passed to the new process.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,