class DeprecatedOpenResult

Defined at line 124 of file ../../src/storage/lib/vfs/cpp/vfs.h

Public Methods

template <typename T>
void DeprecatedOpenResult (T && v)

Forwards the constructor arguments into the underlying |std::variant|. This allows

|DeprecatedOpenResult| to be constructed directly from one of the variants, e.g.

DeprecatedOpenResult r = DeprecatedOpenResult::Error{ZX_ERR_ACCESS_DENIED};

Defined at line 153 of file ../../src/storage/lib/vfs/cpp/vfs.h

template <class Visitor>
decltype(visitor(std::declval<zx_status_t>())) visit (Visitor && visitor)

Applies the |visitor| function to the variant payload. It simply forwards the visitor into the

underlying |std::variant|. Returns the return value of |visitor|. Refer to C++ documentation

for |std::visit|.

Defined at line 159 of file ../../src/storage/lib/vfs/cpp/vfs.h

Ok & ok ()

Defined at line 163 of file ../../src/storage/lib/vfs/cpp/vfs.h

bool is_ok ()

Defined at line 164 of file ../../src/storage/lib/vfs/cpp/vfs.h

Error & error ()

Defined at line 166 of file ../../src/storage/lib/vfs/cpp/vfs.h

bool is_error ()

Defined at line 167 of file ../../src/storage/lib/vfs/cpp/vfs.h

Remote & remote ()

Defined at line 169 of file ../../src/storage/lib/vfs/cpp/vfs.h

bool is_remote ()

Defined at line 170 of file ../../src/storage/lib/vfs/cpp/vfs.h

Records