AFIO  v2.00 late alpha
async_file_handle.hpp File Reference

Provides async_file_handle. More...

#include "file_handle.hpp"
#include "io_service.hpp"

Classes

class  afio_v2_xxx::async_file_handle
 An asynchronous handle to an open something. More...
 
union  afio_v2_xxx::async_file_handle::_erased_io_state_type::result_storage
 
class  afio_v2_xxx::async_file_handle::awaitable< BuffersType >
 Type sugar to tell co_await what to do. More...
 
struct  afio_v2_xxx::construct< async_file_handle >
 Constructor for async_file_handle More...
 

Namespaces

 afio_v2_xxx
 The AFIO namespace.
 

Typedefs

template<class R , class Fn , class... Args>
using afio_v2_xxx::detail::is_invocable_r = std::true_type
 

Functions

void afio_v2_xxx::swap (async_file_handle &self, async_file_handle &o) noexcept
 Swap with another instance.
 
result< async_file_handle > afio_v2_xxx::async_file (io_service &service, const path_handle &base, async_file_handle::path_view_type _path, async_file_handle::mode _mode=async_file_handle::mode::read, async_file_handle::creation _creation=async_file_handle::creation::open_existing, async_file_handle::caching _caching=async_file_handle::caching::only_metadata, async_file_handle::flag flags=async_file_handle::flag::none) noexcept
 
result< async_file_handle > afio_v2_xxx::async_random_file (io_service &service, const path_handle &dirpath, async_file_handle::mode _mode=async_file_handle::mode::write, async_file_handle::caching _caching=async_file_handle::caching::only_metadata, async_file_handle::flag flags=async_file_handle::flag::none) noexcept
 
result< async_file_handle > afio_v2_xxx::async_temp_file (io_service &service, async_file_handle::path_view_type name=async_file_handle::path_view_type(), async_file_handle::mode _mode=async_file_handle::mode::write, async_file_handle::creation _creation=async_file_handle::creation::if_needed, async_file_handle::caching _caching=async_file_handle::caching::only_metadata, async_file_handle::flag flags=async_file_handle::flag::unlink_on_close) noexcept
 
result< async_file_handle > afio_v2_xxx::async_temp_inode (io_service &service, const path_handle &dir=path_discovery::storage_backed_temporary_files_directory(), async_file_handle::mode _mode=async_file_handle::mode::write, async_file_handle::flag flags=async_file_handle::flag::none) noexcept
 
async_file_handle::io_result< async_file_handle::const_buffers_type > afio_v2_xxx::barrier (async_file_handle &self, async_file_handle::io_request< async_file_handle::const_buffers_type > reqs=async_file_handle::io_request< async_file_handle::const_buffers_type >(), bool wait_for_device=false, bool and_metadata=false, deadline d=deadline()) noexcept
 
result< async_file_handle::awaitable< async_file_handle::buffers_type > > afio_v2_xxx::co_read (async_file_handle &self, async_file_handle::io_request< async_file_handle::buffers_type > reqs) noexcept
 Schedule a read to occur asynchronously. More...
 
result< async_file_handle::awaitable< async_file_handle::const_buffers_type > > afio_v2_xxx::co_write (async_file_handle &self, async_file_handle::io_request< async_file_handle::const_buffers_type > reqs) noexcept
 Schedule a write to occur asynchronously. More...
 

Detailed Description

Provides async_file_handle.