folly::ShallowCopyRequestContextScopeGuard

This guard maintains all the RequestData pointers of the parent. This allows to overwrite a specific RequestData pointer for the scope's duration, without breaking others.

Synopsis

Declared in <folly/io/async/Request.h>

struct ShallowCopyRequestContextScopeGuard;

Description

Only modified pointers will have their set/onset methods called

Member Functions

NameDescription
ShallowCopyRequestContextScopeGuard [constructor]Constructors
~ShallowCopyRequestContextScopeGuard [destructor]Restores the previous context.
operator= Assignment operators