Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
RpcResultStreamServiceProvider.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/editor/RpcResultStreamCloseReason.h"
7
#include "mc/editor/Task.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
namespace
Editor {
struct
CoroutineStatus
; }
12
namespace
Editor::Rpc {
class
RpcResultStreamCancellationToken
; }
13
namespace
Editor::Rpc {
struct
RpcRejection
; }
14
namespace
Editor::Rpc {
struct
RpcResultStreamDescriptor
; }
15
namespace
Editor::Rpc {
struct
RpcResultStreamPayload
; }
16
// clang-format on
17
18
namespace
Editor::Rpc {
19
20
class
RpcResultStreamServiceProvider
{
21
public
:
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>,
29
::Editor::CoroutineStatus
>(uint,
::Editor::Rpc::RpcResultStreamCancellationToken
)> producer,
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
Editor::Rpc::RpcResultStreamCancellationToken
Definition
RpcResultStreamCancellationToken.h:7
Editor::Rpc::RpcResultStreamServiceProvider
Definition
RpcResultStreamServiceProvider.h:20
Editor::Task
Definition
Task.h:8
Editor::CoroutineStatus
Definition
CoroutineStatus.h:7
Editor::Rpc::RpcRejection
Definition
RpcRejection.h:7
Editor::Rpc::RpcResultStreamDescriptor
Definition
RpcResultStreamDescriptor.h:7
Editor::Rpc::RpcResultStreamPayload
Definition
RpcResultStreamPayload.h:7
src
mc
editor
RpcResultStreamServiceProvider.h
Generated on
for LeviLamina by
1.16.1