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(), [ Lib
Tmux () ]) :: {:ok, Lib.Capture .option Tmux (), Lib.Snapshot .t Tmux ()} | {:error, Lib.Capture .diagnostics Tmux (), Lib.Error .t Tmux ()}.Capture .diagnostics -
Description
The options are those of
snapshot/2. Usecommandsfor calls to the one-shot transport, including failed calls, andbytesfor 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
-
-
options([LibTmux ()]).Capture .option Default
[]
Recorded calls
source callsThe 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 materialPages that discuss snapshot_with_diagnostics/2.