pub struct ChildStartContext { /* private fields */ }Expand description
Child-only setup context, constructed after namespace/filesystem setup.
It is neither clonable nor serializable. Transferred descriptors are sent once with SCM_RIGHTS, then the child’s originals are closed before seccomp. This context creates no worker and carries no authority to emit capture data.
Implementations§
Source§impl ChildStartContext
impl ChildStartContext
Sourcepub fn transfer_fd(&mut self, fd: OwnedFd) -> Result<(), StartupError>
pub fn transfer_fd(&mut self, fd: OwnedFd) -> Result<(), StartupError>
Transfers ownership of a descriptor to the parent startup callback.
Exceeding MAX_STARTUP_FDS refuses startup and closes the supplied FD.
Auto Trait Implementations§
impl Freeze for ChildStartContext
impl RefUnwindSafe for ChildStartContext
impl Send for ChildStartContext
impl Sync for ChildStartContext
impl Unpin for ChildStartContext
impl UnsafeUnpin for ChildStartContext
impl UnwindSafe for ChildStartContext
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