fidl::InterfacePtr

Summary

Constructors and Destructors

InterfacePtr()
InterfacePtr(std::nullptr_t)
InterfacePtr(const InterfacePtr & other)
InterfacePtr(InterfacePtr && other)

Public types

Proxy using
typename Interface::Proxy_

Public functions

Bind(zx::channel channel, async_dispatcher_t *dispatcher)
zx_status_t
Bind(InterfaceHandle< Interface > handle, async_dispatcher_t *dispatcher)
zx_status_t
NewRequest(async_dispatcher_t *dispatcher)
InterfaceRequest< Interface >
Unbind()
InterfaceHandle< Interface >
channel() const
const zx::channel &
dispatcher() const
async_dispatcher_t *
events() const
Proxy &
get() const
Interface *
is_bound() const
bool
operator bool() const
operator*() const
Interface &
operator->() const
Interface *
operator=(const InterfacePtr & other)=delete
operator=(InterfacePtr && other)
set_error_handler(fit::function< void(zx_status_t)> error_handler)
void

Structs

fidl::InterfacePtr::Impl

Public types

Proxy

typename Interface::Proxy_ Proxy

Public functions

Bind

zx_status_t Bind(
  zx::channel channel,
  async_dispatcher_t *dispatcher
)

Bind

zx_status_t Bind(
  InterfaceHandle< Interface > handle,
  async_dispatcher_t *dispatcher
)

InterfacePtr

 InterfacePtr()

InterfacePtr

 InterfacePtr(
  std::nullptr_t
)

InterfacePtr

 InterfacePtr(
  const InterfacePtr & other
)=delete

InterfacePtr

 InterfacePtr(
  InterfacePtr && other
)

NewRequest

InterfaceRequest< Interface > NewRequest(
  async_dispatcher_t *dispatcher
)

Unbind

InterfaceHandle< Interface > Unbind()

channel

const zx::channel & channel() const 

dispatcher

async_dispatcher_t * dispatcher() const 

events

Proxy & events() const 

get

Interface * get() const 

is_bound

bool is_bound() const 

operator bool

 operator bool() const 

operator*

Interface & operator*() const 

operator->

Interface * operator->() const 

operator=

InterfacePtr & operator=(
  const InterfacePtr & other
)=delete

operator=

InterfacePtr & operator=(
  InterfacePtr && other
)

set_error_handler

void set_error_handler(
  fit::function< void(zx_status_t)> error_handler
)