template <>

class NaturalClientImpl

Defined at line 104 of file fidling/gen/sdk/fidl/fuchsia.hardware.network.driver/fuchsia.hardware.network.driver/cpp/fidl/fuchsia.hardware.network.driver/cpp/driver/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_hardware_network_driver::NetworkPort::GetInfo> GetInfo ()

Gets information about the port.

Port information must not change over the port's lifetime.

- response `info` port information.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_network_driver::NetworkPort::GetStatus> GetStatus ()

Gets operational status of the port.

Changes to operational status must be reported via

[`NetworkDeviceIfc.StatusChanged`]

- response `status` snapshot of port's operational status.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_network_driver::NetworkPort::GetMac> GetMac ()

Gets an interface to the MAC addressing layer of the port.

Ports that do not support MAC addressing must return an empty interface.

- response `mac_ifc` mac addressing handle.

::fit::result< ::fidl::OneWayError> SetActive (const ::fidl::Request< ::fuchsia_hardware_network_driver::NetworkPort::SetActive> & request)

Notifies the port that there are sessions interested in it.

An active port has sessions attached to it. Implementations may employ

power saving or other strategies on disabled ports. Implementations that

do employ such strategies:

- should not report inbound frames for inactive ports;

- must return errors for outbound frames destined to inactive ports.

All ports are inactive on creation.

+ request `active` `true` if port has sessions attached to it, `false`

otherwise.

::fit::result< ::fidl::OneWayError> Removed ()

Notifies this port has been removed from the interface.

Resources associated with the port must only be freed upon receiving the

`Removed` call. Note that Removed will ONLY be called if AddPort has

returned and indicated success. If AddPort fails this will not be called,

check the return status of AddPort instead.