pub struct LegacyJoiningSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LegacyJoiningSynchronousProxy
impl LegacyJoiningSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LegacyJoiningEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LegacyJoiningEvent, 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 make_joinable(
&self,
duration: i64,
port: u16,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn make_joinable( &self, duration: i64, port: u16, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Makes the interface joinable for Thread devices that need to use a non-standard in-band commissioning protocol. It is not used for standard Thread commissioning.
When this call returns, the interface has been made joinable if requested.
Subsequent calls to this method will override previous calls. To force the interface to no longer be joinable immediately, call this method with a duration of zero seconds and a port of zero (port is ignored in this case).
This method must only be called when the interface is online
(Specifically, either attaching, attached, or isolated). If the
interface is in any other state, the channel will be closed with
ZX_ERR_BAD_STATE
.
duration
specifies a minimum time the interface should be made
joinable, relative to the time the call is received. It may be rounded
up to the nearest second.
port
specifies the local port that TCP or UDP commissioning traffic
will be directed to.
Trait Implementations§
Source§impl SynchronousProxy for LegacyJoiningSynchronousProxy
impl SynchronousProxy for LegacyJoiningSynchronousProxy
Source§type Proxy = LegacyJoiningProxy
type Proxy = LegacyJoiningProxy
Source§type Protocol = LegacyJoiningMarker
type Protocol = LegacyJoiningMarker
Proxy
controls.