pub struct OwnedFinalization<T> { /* private fields */ }Expand description
Encoded bytes and the child, retained through pending or failed cleanup. No generic result value has been deserialized in the parent.
Implementations§
Source§impl<T> OwnedFinalization<T>
impl<T> OwnedFinalization<T>
Sourcepub fn provisional_bytes(&self) -> &[u8] ⓘ
pub fn provisional_bytes(&self) -> &[u8] ⓘ
Exact bytes received so far, which are not a decoded result or authority.
Sourcepub fn result_eof(&self) -> bool
pub fn result_eof(&self) -> bool
Whether an actual EOF completed result acquisition.
Sourcepub fn result_reader_abandoned(&self) -> bool
pub fn result_reader_abandoned(&self) -> bool
Whether cleanup abandoned an unread result reader because a failed owner lacked a pidfd. Collected bytes and the first failure stay intact; abandonment is not EOF, cancellation, or proof of child termination.
Sourcepub fn cleanup(&self) -> &OwnedContainerCleanup
pub fn cleanup(&self) -> &OwnedContainerCleanup
Borrows diagnostic identity and cleanup observations without disarming ownership.
Sourcepub fn failure(&self) -> Option<OwnedRunFailure>
pub fn failure(&self) -> Option<OwnedRunFailure>
The frozen original failure, if one was observed.
Sourcepub fn retry_until(self, deadline: Instant) -> OwnedFinalize<T>
pub fn retry_until(self, deadline: Instant) -> OwnedFinalize<T>
Retries observation/cancellation while preserving bytes and the original child identity, with unread-reader abandonment only as described below. A previously failed result stays failed even if cleanup later succeeds. If that failed owner has no pidfd, close its unread result reader before waiting: retaining it could block the child serializer forever while waiting for that same child. This preserves the original wait and bytes, but permits the child to observe a broken pipe. It does not guarantee arbitrary workers or a child ignoring write failures will terminate.
Sourcepub fn cancel_until(self, deadline: Instant) -> OwnedFinalize<T>
pub fn cancel_until(self, deadline: Instant) -> OwnedFinalize<T>
Cancels through the original owner up to the absolute deadline. An earlier failure takes precedence; otherwise cancellation becomes the sticky failure even if C subsequently exits successfully. A returned failed owner can still be pending cleanup and must be retained or retried.