class TreeServerSendPreference
Defined at line 26 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
TreeServerSendPreference describes how the Inspect VMO should be served.
The server has a primary behavior and a failure behavior. These describe the way that the
Inspector's VMO handle will be duplicated. The options in general are:
- Frozen: this is copy-on-write.
- Live: updates to the server side VMO propagate to the client. The client is read-only.
- DeepCopy: completely copies the VMO data into a new VMO.
The primary behavior is always configurable. By default, the primary behavior is Frozen.
The failure behavior is configurable when the primary behavior is Frozen. In that case,
the failure behavior can be set to either Live or DeepCopy. The default is Live.
The ultimate fallback behavior is always to send a Live VMO.
Public Methods
void TreeServerSendPreference ()
Default behavior is to send a Frozen VMO; on failure, it will send a Live VMO.
Defined at line 29 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
TreeServerSendPreference Frozen (Type failure)
Freeze the VMO if possible. On failure, do `failure`.
`failure` should not be Type::Frozen.
Defined at line 47 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
TreeServerSendPreference Live ()
Send a live VMO.
Defined at line 52 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
TreeServerSendPreference DeepCopy ()
Send a true copy of the VMO.
Defined at line 57 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
Type PrimaryBehavior ()
Defined at line 61 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
std::optional<Type> FailureBehavior ()
Defined at line 62 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h
Enumerations
enum Type
| Name | Value |
|---|---|
| Frozen | 0 |
| Live | 1 |
| DeepCopy | 2 |
Defines the behavior of the VMO sent over this service.
Defined at line 32 of file ../../sdk/lib/inspect/component/cpp/tree_handler_settings.h