class BlockServer
Defined at line 89 of file ../../src/storage/lib/block_server/block_server.h
Public Methods
void BlockServer (const PartitionInfo & , Interface * )
Constructs a new server.
Defined at line 13 of file ../../src/storage/lib/block_server/block_server.cc
void BlockServer (BlockServer && )
Defined at line 58 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 64 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 70 of file ../../src/storage/lib/block_server/block_server.cc
void SendReply (RequestId , zx::result<> )
Defined at line 74 of file ../../src/storage/lib/block_server/block_server.cc
void BlockServer (const BlockServer & )
Defined at line 93 of file ../../src/storage/lib/block_server/block_server.h
BlockServer & operator= (const BlockServer & )
Defined at line 94 of file ../../src/storage/lib/block_server/block_server.h
BlockServer & operator= (BlockServer && )
Defined at line 96 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.
Defined at line 109 of file ../../src/storage/lib/block_server/block_server.h