Fastly Compute C++ SDK
Loading...
Searching...
No Matches
rust_bridge_tags.h
Go to the documentation of this file.
1// Some types (primarily callback types) must be defined in C++, but depend upon
2// types defined in Rust. To break this circular dependency, we define empty
3// "tag" structs here in C++ that can be referenced both from C++ and Rust,
4// allowing Rust to pass pointers to these types back to C++ without needing to
5// know their full definition.
6//
7// C++ types that implement the tags should inherit from the tag structs and the
8// bindings should cast to/from the tag types as necessary.
9
10#ifndef FASTLY_DETAIL_RUST_BRIDGE_TAGS_H
11#define FASTLY_DETAIL_RUST_BRIDGE_TAGS_H
12
14namespace esi {
15// esi.h:DispatchFragmentRequestFn
17 // Ensure that only classes that inherit from this tag can be used as
18 // DispatchFragmentRequestFn.
19protected:
21};
22// esi.h:ProcessFragmentResponseFn
24protected:
26};
27} // namespace esi
28} // namespace fastly::detail::rust_bridge_tags
29
30#endif
Definition rust_bridge_tags.h:14
Definition rust_bridge_tags.h:13