template <typename ServerImplMaybeOwned, typename OnUnbound>

struct UnboundThunk

Defined at line 369 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/server_details.h

An |UnboundThunk| is a functor that delegates to an |OnUnbound| callable,

and which ensures that the server implementation is only destroyed after

the invocation and destruction of the |OnUnbound| callable, when the server

is managed in a |shared_ptr| or |unique_ptr|.

Public Members

std::remove_reference_t<ServerImplMaybeOwned> impl_
std::remove_reference_t<OnUnbound> on_unbound_

Public Methods

void UnboundThunk<ServerImplMaybeOwned, OnUnbound> (ServerImplMaybeOwned && impl, OnUnbound && on_unbound)

Defined at line 370 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/server_details.h

template <typename ServerImpl, typename Endpoint>
void operator() (ServerImpl * impl_ptr, UnbindInfo info, Endpoint && server_end)

Defined at line 375 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/server_details.h