template <>

class WireSyncBufferClientImpl

Defined at line 857 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h

Public Methods

::fidl::WireUnownedResult< ::fuchsia_net_tun::Port::GetState> GetState ()

Gets the port internal state.

- response `state` a snapshot of the port's internal state.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_net_tun::Port::WatchState> WatchState ()

Observes changes to internal state.

The first call always returns the current internal state, subsequent

calls block until the internal state differs from the last one returned

from a `WatchState` call.

`WatchState` does not provide full history of internal state changes. It

is possible that intermediary internal state changes are missed in

between `WatchState` calls.

- response `state` the latest observed port internal state.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::WireUnownedResult< ::fuchsia_net_tun::Port::SetOnline> SetOnline (bool online)

Sets the port's online status.

The online status is visible through

[`fuchsia.hardware.network/Port.GetStatus`]. Once `SetOnline` returns,

the status reported through `GetStatus` is guaranteed to be the one

passed to `SetOnline`.

+ request `online` desired port online state.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::OneWayStatus GetPort (::fidl::ServerEnd< ::fuchsia_hardware_network::Port> && port)

Connects to the underlying device port.

+ request `port` grants access to the device port.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.

::fidl::OneWayStatus Remove ()

Triggers port removal.

The client end will be closed once the server has completely cleaned up

all resources related to the port. This is equivalent to simply dropping

the client end, but provides callers with a signal of when removal is

complete, allowing port identifiers to be reused, for example.

Caller provides the backing storage for FIDL message via an argument to `.buffer()`.