class BlockServer
Defined at line 129 of file ../../src/storage/lib/block_server/block_server.h
Public Methods
void BlockServer (const PartitionInfo & , Interface * )
Constructs a new server.
Defined at line 15 of file ../../src/storage/lib/block_server/block_server.cc
void BlockServer (BlockServer && )
Defined at line 60 of file ../../src/storage/lib/block_server/block_server.cc
void ~BlockServer ()
Destroys the server. This will trigger termination and then block until:
1. `Thread::Run()` returns.
2. All `Session` objects have been destroyed i.e. `Session::Run` has returned
*and* `Session` has been destroyed.
Once this returns, there will be no subsequent calls via `Interface`.
Defined at line 66 of file ../../src/storage/lib/block_server/block_server.cc
void Serve (fidl::ServerEnd<fuchsia_storage_block::Block> )
Serves a new connection. The FIDL handling is multiplexed onto a single per-server thread.
Defined at line 72 of file ../../src/storage/lib/block_server/block_server.cc
void SendReply (RequestId , zx::result<> )
Defined at line 76 of file ../../src/storage/lib/block_server/block_server.cc
void BlockServer (const BlockServer & )
Defined at line 133 of file ../../src/storage/lib/block_server/block_server.h
BlockServer & operator= (const BlockServer & )
Defined at line 134 of file ../../src/storage/lib/block_server/block_server.h
BlockServer & operator= (BlockServer && )
Defined at line 136 of file ../../src/storage/lib/block_server/block_server.h
template <typename Callback>
void DestroyAsync (Callback callback)
Destroys the server asynchronously and calls `callback` when complete.
Once the callback is invoked, it is guaranteed that all sessions will have terminated, and no
new sessions wil start. The server can be deleted at any point after the callback is invoked
(including in the callback itself).
Defined at line 153 of file ../../src/storage/lib/block_server/block_server.h