template <>
class WireWeakSyncClientImpl
Defined at line 3913 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h
Public Methods
::fidl::WireResult< ::fuchsia_net_tun::Port::GetState> GetState ()
Gets the port internal state.
- response `state` a snapshot of the port's internal state.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.
::fidl::WireResult< ::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.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.
::fidl::WireResult< ::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.
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.