template <>
class WireSyncClientImpl
Defined at line 794 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h
Methods to make a sync FIDL call directly on an unowned handle or a
const reference to a |::fidl::ClientEnd
<
::fuchsia_net_tun::Port>|,
avoiding setting up a client.
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.
::fidl::OneWayStatus GetPort (::fidl::ServerEnd< ::fuchsia_hardware_network::Port> && port)
Connects to the underlying device port.
+ request `port` grants access to the device port.
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::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.
Allocates 32 bytes of message buffer on the stack. No heap allocation necessary.