9#include <userver/engine/task/task_processor_fwd.hpp>
10#include <userver/fs/blocking/temp_file.hpp>
11#include <userver/utils/not_null.hpp>
13USERVER_NAMESPACE_BEGIN
29 static TempFile
Create(engine::TaskProcessor& fs_task_processor);
37 Create(std::string_view parent_path, std::string_view name_prefix, engine::TaskProcessor& fs_task_processor);
40 TempFile(TempFile&& other)
noexcept =
default;
41 TempFile& operator=(TempFile&& other)
noexcept =
default;
45 static TempFile
Adopt(std::string path, engine::TaskProcessor& fs_task_processor);
55 TempFile(engine::TaskProcessor& fs_task_processor, fs::
blocking::TempFile temp_file);
57 utils::
NotNull<engine::TaskProcessor*> fs_task_processor_;