template <>
class WireServer
Defined at line 6398 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_fxfs::FileBackedVolumeProvider>|
and |::fidl::ServerEnd
<
::fuchsia_fxfs::FileBackedVolumeProvider>|).
Public Methods
void Open (::fuchsia_fxfs::wire::FileBackedVolumeProviderOpenRequest * 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 WireServer ()
Defined at line 6401 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_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 ~WireServer ()
Defined at line 6402 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h