template <>

class Server

Defined at line 2177 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/natural_messaging.h

Public Methods

void Open (OpenRequest & request, OpenCompleter::Sync & completer)

Opens a file as a block device and starts serving block requests.

`name` must refer to an existing file in the directory represented by

`parent_directory_token`.

The block size of the device will match the underlying filesystem's block size. If the

file's size is not a multiple of the block size, the apparent size of the device will be

rounded down.

`parent_directory_token` is a token obtained via `fuchsia.io.Directory/GetToken`. The

directory connection must have the `MODIFY_DIRECTORY` right.

Errors will be sent as an epitaph on `server_end`.

void Server ()

Defined at line 2180 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/natural_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~Server ()

Defined at line 2181 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/natural_messaging.h