template <>
class WireServer
Defined at line 2209 of file fidling/gen/src/storage/fidl/fuchsia.fs.startup/fuchsia.fs.startup/cpp/fidl/fuchsia.fs.startup/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_fs_startup::Volume>|
and |::fidl::ServerEnd
<
::fuchsia_fs_startup::Volume>|).
Public Methods
void Mount (::fuchsia_fs_startup::wire::VolumeMountRequest * request, MountCompleter::Sync & completer)
Mounts the volume. If the volume is encrypted, `options.crypt` should provide all key
access for the given volume. `outgoing_directory` will contain the root and other services
exposed by the volume. To lock the volume, call fuchsia.fs.Admin.Shutdown on the returned
handle.
void Check (::fuchsia_fs_startup::wire::VolumeCheckRequest * request, CheckCompleter::Sync & completer)
Check the volume for consistency. If the volume is encrypted, `options.crypt` should
provide all key access for the given volume.
void SetLimit (::fuchsia_fs_startup::wire::VolumeSetLimitRequest * request, SetLimitCompleter::Sync & completer)
Set the limit in bytes on the volume. Setting it lower than current usage is accepted but
will prevent further increases.
void GetLimit (GetLimitCompleter::Sync & completer)
Get the allocation limit for the volume. A return value of 0 indicates that there
is no limit and the volume can be extended as long as there is available space on the
device.
The volume may be larger than this limit if a smaller limit was applied after the
volume had already grown to the current size.
The volume limit persists across reboots.
void GetInfo (GetInfoCompleter::Sync & completer)
Returns information about the volume.
void WireServer ()
Defined at line 2212 of file fidling/gen/src/storage/fidl/fuchsia.fs.startup/fuchsia.fs.startup/cpp/fidl/fuchsia.fs.startup/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 2213 of file fidling/gen/src/storage/fidl/fuchsia.fs.startup/fuchsia.fs.startup/cpp/fidl/fuchsia.fs.startup/cpp/wire_messaging.h