template <>
class WireServer
Defined at line 4273 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::BlobCreator>|
and |::fidl::ServerEnd
<
::fuchsia_fxfs::BlobCreator>|).
Public Methods
void Create (::fuchsia_fxfs::wire::BlobCreatorCreateRequest * request, CreateCompleter::Sync & completer)
Creates a blob with the merkle root `hash`. If `allow_existing` is true, the server will
overwrite the existing blob if there is one. The server may fail this request with
`[CreateBlobError.ALREADY_EXISTS]` if there is already an inflight `BlobWriter` for the same
hash which has not been closed or completed. The client will truncate the blob with
[BlobWriter.GetVmo] and get a handle to a vmo in return. The client will then write blob
contents into the vmo and call [BlobWriter.BytesReady] on the 'writer` to signal to the
server that some number of bytes has been written to the vmo.
void NeedsOverwrite (::fuchsia_fxfs::wire::BlobCreatorNeedsOverwriteRequest * request, NeedsOverwriteCompleter::Sync & completer)
Given the hash of a blob, returns true if it should be overwritten using Create with
`allow_existing` set to true.
void WireServer ()
Defined at line 4276 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 4277 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h