LeviLamina
Loading...
Searching...
No Matches
RpcResultStreamServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/RpcResultStreamCloseReason.h"
7#include "mc/common/editor/Task.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Editor { struct CoroutineStatus; }
12namespace Editor::Rpc { class RpcResultStreamCancellationToken; }
13namespace Editor::Rpc { struct RpcRejection; }
14namespace Editor::Rpc { struct RpcResultStreamDescriptor; }
15namespace Editor::Rpc { struct RpcResultStreamPayload; }
16// clang-format on
17
18namespace Editor::Rpc {
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~RpcResultStreamServiceProvider() = default;
25
26 virtual ::nonstd::expected<::Editor::Rpc::RpcResultStreamDescriptor, ::Editor::Rpc::RpcRejection> openResultStream(
27 ::std::function<::Editor::Task<
28 ::nonstd::expected<::Editor::Rpc::RpcResultStreamPayload, ::Editor::Rpc::RpcRejection>,
30 ::std::function<void(::Editor::Rpc::RpcResultStreamCloseReason)> onClose
31 ) = 0;
32
33 virtual bool cancelResultStream(uint64 streamId) = 0;
34 // NOLINTEND
35};
36
37} // namespace Editor::Rpc
Definition RpcResultStreamCancellationToken.h:7
Definition RpcResultStreamServiceProvider.h:20
Definition Task.h:8
Definition CoroutineStatus.h:7
Definition RpcRejection.h:7
Definition RpcResultStreamDescriptor.h:7
Definition RpcResultStreamPayload.h:7