LibTmux.Recovery
Recover incomplete operations and scope cleanup using the exception
context returned by LibTmux.Server or by tryWithContext.
Inspection reads retained metadata. Resuming cleanup never submits
the original command again.
Source and package
- Qualified name
-
LibTmux. Recovery - Package
- libtmux-haskell
- Source
- src/LibTmux/Recovery.hs
- LibTmux.Recovery
-
Description
Reexports
-
LibTmux.Program(selected exports)
What is on here
Its exports fall into these groups, in export-list order:
- Scope cleanup
- Capture
- Creation
- Pane relocation
- Mutation
- Control client cleanup
- Operation metadata
-
Members50 members
Common operations19
- cleanupRecoveries function Cleanup owners retained by a failed or cancelled scope. The context
comes from
tryTmuxortryWithContext. Inspection performs no tmux IO. Nested scopes can contribute overlapping owners; inspect and resume each retained responsibility throughinspectCleanupandresumeCleanup. - awaitCreationRecovery function Join the original native child and decoder. Logical uncertainty can remain, and this wait proves no hook/background-job completion.
- awaitMutationRecovery function Wait for the original decoder and native child to retire. This may still
return retained
OutcomeUnknown; it does not wait for a daemon hook job. Cancellation keeps this recovery owner in the new exception context. - captureRecoveries function Read owners retained by a capture or Server version check, including cancellation.
- CleanupRecovery data type Reachable responsibility after an incomplete or failed scope release. Retaining this value keeps its selected cleanup target and Runtime reachable.
- creationGeneration function Originating Server generation, including after the scope closes.
- creationOperation function Metadata-only identity of the original creation operation.
- creationReceipt function Read any complete historical receipt already observed by the library. This reads owned metadata without contacting tmux. Nothing does not mean no entity was created; unread or incomplete evidence cannot supply IDs.
- creationRecoveries function Correlated creation owners from
tryTmuxortryWithContext. Keep the context when handling failure, including an applied command's hook error. - detachCreationRecovery function Relinquish logical uncertainty while preserving physical cleanup owners. This does not remove the created session or repeat the command.
- detachMutationRecovery function Relinquish this operation's logical uncertainty. This neither cancels daemon work nor releases native resources, and never repeats the mutation.
- inspectCreationRecovery function Inspect logical outcome and native ownership without external operations.
- inspectMutationRecovery function Inspect the original operation's logical and physical ownership locally. This performs no tmux command. An unknown outcome does not become success merely because the native child has exited.
- mutationGeneration function Server generation associated with this mutation's recovery owner.
- mutationOperation function Metadata-only identity of the original command.
operationStatusremains available after native cleanup; this value contains no command operands. - mutationRecoveries function Recover the exact operation after failure, timeout or cancellation. The
context comes from
tryTmuxortryWithContext; cancellation keeps its original exception class and is not caught bytryTmux. - relocationRecoveries function Find relocation ownership and any original native receipt in the exception context. Resume cleanup without repeating the relocation.
- resumeCreationRecovery function Resume existing cleanup; never execute the creation again.
- resumeMutationRecovery function Resume existing native cleanup and decoder ownership, without repeating the command. Allocation failure retains the same recovery owner.
Other members31
- awaitCleanup function Wait for this target's physical cleanup, then inspect its logical debt.
The wait has no deadline.
Cancellation or failure preserves an annotated cleanup owner. Use
resumeCleanupwhen the caller requires a bounded attempt. - awaitRelocationRecovery function Wait until the native client and its worker have both retired.
- CaptureRecovery data type A reachable owner for one failed or cancelled capture. The receipt holds metadata only; the Runtime retains any remaining native and logical owners.
- cleanupFailure function Exception that interrupted the original cleanup attempt, when there was one. Pending ownership alone need not have an associated exception.
- cleanupObservation function The cleanup metadata recorded when this recovery owner was attached.
- CleanupStatus data type Local observations of the selected physical and logical responsibility. Each inspection returns new metadata; it performs no tmux operation.
- controlRecoveries function Find a retained control client after interrupted or incomplete cleanup.
- ControlRecovery data type
- controlRetired function Inspect whether the original native client and its reader retired.
- CreationRecovery data type One failed creation's operation and its independently observed IDs. The Runtime retains native/logical owners. Missing IDs do not prove absence.
- detachCaptureRecovery function Explicitly detach logical uncertainty while preserving native ownership.
- detachRelocationRecovery function Release the retained logical result. The Runtime keeps any native owner.
- detachUnresolved function Relinquish one logical operation from this cleanup scope. This releases no native resources and does not prove that daemon-side work completed.
- inspectCaptureRecovery function Observe logical outcome, decoder ownership and native cleanup locally. This reads runtime metadata and performs no tmux command.
- inspectCleanup function Inspect current owned cleanup and logical uncertainty without tmux IO.
- inspectRelocationRecovery function Read the original operation's outcome and outstanding cleanup ownership.
- MutationRecovery data type Reachable ownership for one failed or cancelled mutation. The receipt
retains metadata only; the Runtime retains outstanding native and logical
owners. Recovery never repeats the command. See
LibTmux.Server. - Operation data type Metadata-only operation identity, readable after responsibility retires. Its owning scope controls advancement and explicit detachment.
- operationStatus function Read retained operation metadata, including after its physical cleanup.
- Outcome data type First caller result. Later evidence can retire responsibility without
rewriting
OutcomeUnknownorConnectionRetired. - ReadRecovery data type Logical responsibility and an operation's physical owners, observed together. A released native child does not establish a daemon-side command outcome.
- recoveryGeneration function Correlate the failed capture with its Server generation.
- recoveryOperation function Metadata-only operation identity for the failed capture.
- relocationReceipt function Read the captured primary evidence, including an optional printed link. Capture the current graph before deciding whether to retry.
- RelocationRecovery data type Ownership retained for the original relocation and its native receipt.
- resumeCaptureRecovery function Resume existing cleanup without dispatching the capture again.
- resumeCleanup function Retry bounded owned cleanup. An incomplete result retains this owner; the operation does not retry a tmux command or release logical uncertainty.
- resumeControlCleanup function Resume cleanup of the original client. Returns true after its owned resources retire.
- resumeRelocationRecovery function Resume cleanup of the original request without dispatching another move.
- Stage data type Last observed progress. Publishing an uncertain
Outcomedoes not advance this stage or establishOperationComplete. - Status data type Progress, published result and responsibility are independent observations. A retained uncertain operation still consumes admission and its lane permit.
No members of LibTmux.Recovery match . The filter searches only this type. Search the whole API.
Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.
Referenced declarations
type references 1Types and data LibTmux.Recovery names in its declaration.
- LibTmux.Program module
Guides
task materialPages that discuss LibTmux.Recovery.