pub struct ChildSession { /* private fields */ }Expand description
Owned exact child process, authenticated control channel, and cleanup ledger.
Implementations§
Source§impl ChildSession
impl ChildSession
Sourcepub fn spawn(program: &OsStr, arguments: &[&OsStr]) -> Result<Self, LinuxError>
pub fn spawn(program: &OsStr, arguments: &[&OsStr]) -> Result<Self, LinuxError>
Spawns an exact helper executable and authenticates its post-exec connection.
Sourcepub const fn channel(&self) -> &AuthenticatedChannel
pub const fn channel(&self) -> &AuthenticatedChannel
Authenticated capability-transfer channel.
Sourcepub const fn channel_mut(&mut self) -> &mut AuthenticatedChannel
pub const fn channel_mut(&mut self) -> &mut AuthenticatedChannel
Exclusive transaction access to the authenticated capability channel.
Sourcepub fn terminate(self) -> Result<(), LinuxError>
pub fn terminate(self) -> Result<(), LinuxError>
Requests termination and reaps the owned child.
Trait Implementations§
Source§impl Drop for ChildSession
impl Drop for ChildSession
Auto Trait Implementations§
impl Freeze for ChildSession
impl RefUnwindSafe for ChildSession
impl Send for ChildSession
impl Sync for ChildSession
impl Unpin for ChildSession
impl UnsafeUnpin for ChildSession
impl UnwindSafe for ChildSession
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