Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-cxx latest

Snapshot.take

Run request with this entity's fields appended and parse what came back.

Source and package
Qualified name
libtmux::Snapshot::take
Namespace
libtmux
Declared in
Snapshot
Package
libtmux-cxx
Source
include/libtmux/snapshot.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] static expected< std::shared_ptr<const Snapshot>, CommandFailure> take(std::shared_ptr<const detail::Backend> backend, std::span<const std::string_view> fields, CommandRequest request, FormatArgument placement = FormatArgument::flag);

Description#

Rows are parsed once, here: entities hold views into them, so a second parse would invalidate every entity already handed out.

Esc

Type to search.

Reference previewOpen reference