template <typename Result, size_t kInlineSize>

struct WeakCallback

Defined at line 42 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/client_continuation.h

|WeakCallback| wraps a piece of logic that should be run when the result of a

two-way FIDL call has arrived, ensuring the wrapped logic is run at most

once: it either invokes the user continuation for handling results, or

silently discards it if the receiver object has went away.

|WeakCallback|s should be made from |WeakCallbackFactory::Then|.

Public Members

fit::inline_callback<void (Result &), kInlineSize> callback
weak_ptr client_object_lifetime

Public Methods

void Run (Result & a)

Defined at line 49 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/client_continuation.h

void operator() (Result & a)

Implement a callable interface.

Defined at line 57 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/client_continuation.h