template <>

class Server

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

Public Methods

void Create (CreateRequest & 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 (NeedsOverwriteRequest & 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 Server ()

Defined at line 1342 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 1343 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/natural_messaging.h