pub struct MacAddressingSynchronousProxy { /* private fields */ }
Implementations§
Source§impl MacAddressingSynchronousProxy
impl MacAddressingSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MacAddressingEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MacAddressingEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_unicast_address(
&self,
___deadline: MonotonicInstant,
) -> Result<MacAddress, Error>
pub fn get_unicast_address( &self, ___deadline: MonotonicInstant, ) -> Result<MacAddress, Error>
Gets the Device’s current unicast MAC address.
Implementers of this API do not need to return a uniquely identifiable MAC; the unicast address returned is the one that is currently in use to filter unicast frames, or that identifies the device on a link it’s currently on. Users of this API must not rely on the stability or uniqueness of the returned value to identify or disambiguate device instances.
- response
address
device’s unicast MAC address.
Sourcepub fn set_mode(
&self,
mode: MacFilterMode,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn set_mode( &self, mode: MacFilterMode, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Sets requested operating mode of this device to mode
.
The requested mode is attached to the current client connection to the device. Because multiple clients can be attached to the same device at once, the mode with the least restrictions is the one actively put into effect into the underlying device implementation.
If the device does not support the requested mode, but supports a mode
that is more open than the requested one, SetMode
succeeds regardless.
Otherwise, if the device only supports more restrictive modes than the
one requested, SetMode
returns ZX_ERR_NOT_SUPPORTED
.
Clients must be aware that the resource being accessed is shared, and that the device may be effectively operating at a more open level than the one that was requested (although never at one more restrictive).
- request
mode
request mode to attach to.
- response
status
ZX_ERR_NOT_SUPPORTED
it the device only supports mode more restrictive than the one requested.
Sourcepub fn add_multicast_address(
&self,
address: &MacAddress,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn add_multicast_address( &self, address: &MacAddress, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Adds multicast address to the list of multicast groups.
The list of multicast addresses kept is untouched by calls to SetMode
.
If the device’s mode is not MULTICAST_FILTER
, the list of multicast
addresses is ignored.
- request
address
multicast address to add to the list.
- response
status
ZX_ERR_INVALID_ARGS
ifaddress
is not a multicast address.
Sourcepub fn remove_multicast_address(
&self,
address: &MacAddress,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn remove_multicast_address( &self, address: &MacAddress, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Removes multicast address from the list of multicast groups.
- request
address
multicast address to remove from the list.
- response
status
ZX_ERR_INVALID_ARGS
ifaddress
is not a multicast address.
Trait Implementations§
Source§impl SynchronousProxy for MacAddressingSynchronousProxy
impl SynchronousProxy for MacAddressingSynchronousProxy
Source§type Proxy = MacAddressingProxy
type Proxy = MacAddressingProxy
Source§type Protocol = MacAddressingMarker
type Protocol = MacAddressingMarker
Proxy
controls.