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.]] static expected< std::shared <const Snapshot>, Command_ptr Failure > take(std::shared <const detail::Backend> backend, std::_ptr span <const std::string > fields, Command_view Request 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.
- Parameters
-
-
backend(std::shared <const detail::Backend>) #_ptr -
fields(std::span <const std::string >) #_view
-