pub struct SpawnedHelper { /* private fields */ }Expand description
Parent-owned exact helper and authenticated bidirectional Mach channel.
Implementations§
Source§impl SpawnedHelper
impl SpawnedHelper
Sourcepub fn spawn(
path: &CString,
arguments: &[CString],
) -> Result<Self, BootstrapError>
pub fn spawn( path: &CString, arguments: &[CString], ) -> Result<Self, BootstrapError>
Spawns an absolute helper path with a private bootstrap send right.
Sourcepub fn authenticate(self) -> Result<ParentChannel, BootstrapError>
pub fn authenticate(self) -> Result<ParentChannel, BootstrapError>
Receives the helper’s control port and authenticates its audit PID.
Trait Implementations§
Source§impl Drop for SpawnedHelper
impl Drop for SpawnedHelper
Auto Trait Implementations§
impl Freeze for SpawnedHelper
impl RefUnwindSafe for SpawnedHelper
impl Send for SpawnedHelper
impl Sync for SpawnedHelper
impl Unpin for SpawnedHelper
impl UnsafeUnpin for SpawnedHelper
impl UnwindSafe for SpawnedHelper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more