class Interface
Defined at line 68 of file ../../src/storage/lib/block_server/block_server.h
Public Methods
void StartThread (Thread )
Called to start the thread that processes all FIDL requests. The implementation must start a
thread and then call `Thread::Run`.
void OnNewSession (Session )
Called when a new session is started. The implementation must start a thread and then call
`Session::Run`. The callback takes ownership of `Session`.
void OnRequests (std::span<Request> )
Called when new requests arrive. It is OK for this method to block so as to cause push back on
the fifo (which is recommended for effective flow control). Each request must eventually be
completed by calling BlockServer::SendReply; failure to do so will result in resource leaks
until the block server terminates.
void ~Interface ()
Defined at line 70 of file ../../src/storage/lib/block_server/block_server.h
void Log (std::string_view msg)
Called for log messages.
Defined at line 86 of file ../../src/storage/lib/block_server/block_server.h