27#include <unordered_map>
37 const std::unordered_map<std::string, std::string> &config = {});
82 rust::Box<opendal::ffi::async::Operator> operator_;
102 explicit
Reader(
size_t reader_id) noexcept;
117 void destroy() noexcept;
119 size_t reader_id_{0};
139 explicit
Lister(
size_t lister_id) noexcept;
152 void destroy() noexcept;
154 size_t lister_id_{0};
Async Lister is designed to list entries at a specified path in an asynchronous manner.
Definition opendal_async.hpp:127
Lister & operator=(Lister &&other) noexcept
Lister(Lister &&other) noexcept
NextFuture next()
Get the next entry in the listing.
opendal::ffi::async::RustFutureEntryOption NextFuture
Definition opendal_async.hpp:141
Lister & operator=(const Lister &)=delete
Lister(const Lister &)=delete
Definition opendal_async.hpp:34
opendal::ffi::async::RustFutureList ListFuture
Definition opendal_async.hpp:54
RemoveAllFuture remove_all(std::string_view path)
Operator(std::string_view scheme, const std::unordered_map< std::string, std::string > &config={})
opendal::ffi::async::RustFutureListerId ListerFuture
Definition opendal_async.hpp:78
CopyFuture copy(std::string_view from, std::string_view to)
ListerFuture lister(std::string_view path)
opendal::ffi::async::RustFutureWrite RemoveAllFuture
Definition opendal_async.hpp:72
RenameFuture rename(std::string_view from, std::string_view to)
opendal::ffi::async::RustFutureWrite RenameFuture
Definition opendal_async.hpp:66
ReadFuture read(std::string_view path)
WriteFuture write(std::string_view path, std::span< uint8_t > data)
opendal::ffi::async::RustFutureRead ReadFuture
Definition opendal_async.hpp:48
opendal::ffi::async::RustFutureWrite CreateDirFuture
Definition opendal_async.hpp:60
Operator & operator=(Operator &&)=default
Operator(Operator &&)=default
DeleteFuture delete_path(std::string_view path)
opendal::ffi::async::RustFutureWrite WriteFuture
Definition opendal_async.hpp:51
opendal::ffi::async::RustFutureBool ExistsFuture
Definition opendal_async.hpp:57
opendal::ffi::async::RustFutureReaderId ReaderFuture
Definition opendal_async.hpp:75
ListFuture list(std::string_view path)
CreateDirFuture create_dir(std::string_view path)
opendal::ffi::async::RustFutureWrite DeleteFuture
Definition opendal_async.hpp:69
ReaderFuture reader(std::string_view path)
Operator & operator=(const Operator &)=delete
ExistsFuture exists(std::string_view path)
opendal::ffi::async::RustFutureWrite CopyFuture
Definition opendal_async.hpp:63
Operator(const Operator &)=delete
Async Reader is designed to read data from a specific path in an asynchronous manner.
Definition opendal_async.hpp:90
Reader(const Reader &)=delete
Reader & operator=(Reader &&other) noexcept
ReadFuture read(uint64_t start, uint64_t len)
Read data from the specified range.
Reader(Reader &&other) noexcept
opendal::ffi::async::RustFutureRead ReadFuture
Definition opendal_async.hpp:104
Reader & operator=(const Reader &)=delete
Definition opendal_async.hpp:32
Definition data_structure.hpp:28