27#include <unordered_map>
36 const std::unordered_map<std::string, std::string> &config = {});
47 using ReadFuture = opendal::ffi::async_op::RustFutureRead;
53 using ListFuture = opendal::ffi::async_op::RustFutureList;
62 using CopyFuture = opendal::ffi::async_op::RustFutureWrite;
78 rust::Box<opendal::ffi::async_op::Operator> operator_;
99 explicit
Reader(
size_t reader_id) noexcept;
114 void Destroy() noexcept;
116 size_t reader_id_{0};
137 explicit
Lister(
size_t lister_id) noexcept;
151 void Destroy() noexcept;
153 size_t lister_id_{0};
Async Lister is designed to list entries at a specified path in an asynchronous manner.
Definition opendal_async.hpp:125
opendal::ffi::async_op::RustFutureEntryOption NextFuture
Definition opendal_async.hpp:139
Lister & operator=(Lister &&other) noexcept
Lister(Lister &&other) noexcept
Lister & operator=(const Lister &)=delete
Lister(const Lister &)=delete
NextFuture Next()
Get the next entry in the listing.
Definition opendal_async.hpp:33
ReadFuture Read(std::string_view path)
opendal::ffi::async_op::RustFutureWrite DeleteFuture
Definition opendal_async.hpp:68
CreateDirFuture CreateDir(std::string_view path)
Operator(std::string_view scheme, const std::unordered_map< std::string, std::string > &config={})
opendal::ffi::async_op::RustFutureWrite CopyFuture
Definition opendal_async.hpp:62
opendal::ffi::async_op::RustFutureReaderId ReaderFuture
Definition opendal_async.hpp:71
ListFuture List(std::string_view path)
opendal::ffi::async_op::RustFutureBool ExistsFuture
Definition opendal_async.hpp:56
opendal::ffi::async_op::RustFutureListerId ListerFuture
Definition opendal_async.hpp:74
Operator & operator=(Operator &&)=default
Operator(Operator &&)=default
ListerFuture GetLister(std::string_view path)
RenameFuture Rename(std::string_view from, std::string_view to)
ReaderFuture GetReader(std::string_view path)
WriteFuture Write(std::string_view path, std::span< uint8_t > data)
opendal::ffi::async_op::RustFutureList ListFuture
Definition opendal_async.hpp:53
opendal::ffi::async_op::RustFutureWrite RenameFuture
Definition opendal_async.hpp:65
DeleteFuture DeletePath(std::string_view path)
ExistsFuture Exists(std::string_view path)
opendal::ffi::async_op::RustFutureWrite CreateDirFuture
Definition opendal_async.hpp:59
Operator & operator=(const Operator &)=delete
opendal::ffi::async_op::RustFutureWrite WriteFuture
Definition opendal_async.hpp:50
Operator(const Operator &)=delete
opendal::ffi::async_op::RustFutureRead ReadFuture
Definition opendal_async.hpp:47
CopyFuture Copy(std::string_view from, std::string_view to)
Async Reader is designed to read data from a specific path in an asynchronous manner.
Definition opendal_async.hpp:87
Reader(const Reader &)=delete
Reader & operator=(Reader &&other) noexcept
opendal::ffi::async_op::RustFutureRead ReadFuture
Definition opendal_async.hpp:101
ReadFuture Read(uint64_t start, uint64_t len)
Read data from the specified range.
Reader(Reader &&other) noexcept
Reader & operator=(const Reader &)=delete
Definition opendal_async.hpp:31
Definition data_structure.hpp:27