Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

Server.snapshot_with_diagnostics/2

Captures a graph and returns work diagnostics on success or failure.

Source and package
Qualified name
LibTmux.Server.snapshot_with_diagnostics/2
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex
snapshot_with_diagnostics(server, options \\ []) @spec snapshot_with_diagnostics(t(), [ LibTmux.Capture.option() ]) :: {:ok, LibTmux.Snapshot.t(), LibTmux.Capture.diagnostics()} | {:error, LibTmux.Error.t(), LibTmux.Capture.diagnostics()}

Description

The options are those of snapshot/2. Use commands for calls to the one-shot transport, including failed calls, and bytes for retained stdout and stderr bytes charged to the capture budget. An overflowing response contributes its retained prefix. Capture-wide limits can stop work before another call is made.

Each fallback names the entity and text fields of the oversized listing, its effective response ceiling, and the batch and individual reads attempted after the listing retired. These counts include failed reads. There are at most three records per capture attempt. The diagnostics contain counts and field names. Capture errors keep their original details, which may include captured output.

See the worked example.

Parameters

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.snapshot_with_diagnostics/2.

Guides

task material

Pages that discuss snapshot_with_diagnostics/2.

Esc
Search in

Type to search.

Reference previewOpen reference