pub struct LegacyJoiningProxy { /* private fields */ }
Implementations§
Source§impl LegacyJoiningProxy
impl LegacyJoiningProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.experimental/LegacyJoining.
Sourcepub fn take_event_stream(&self) -> LegacyJoiningEventStream
pub fn take_event_stream(&self) -> LegacyJoiningEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn make_joinable(
&self,
duration: i64,
port: u16,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn make_joinable( &self, duration: i64, port: u16, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 Clone for LegacyJoiningProxy
impl Clone for LegacyJoiningProxy
Source§fn clone(&self) -> LegacyJoiningProxy
fn clone(&self) -> LegacyJoiningProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LegacyJoiningProxy
impl Debug for LegacyJoiningProxy
Source§impl LegacyJoiningProxyInterface for LegacyJoiningProxy
impl LegacyJoiningProxyInterface for LegacyJoiningProxy
type MakeJoinableResponseFut = QueryResponseFut<()>
fn make_joinable( &self, duration: i64, port: u16, ) -> Self::MakeJoinableResponseFut
Source§impl Proxy for LegacyJoiningProxy
impl Proxy for LegacyJoiningProxy
Source§type Protocol = LegacyJoiningMarker
type Protocol = LegacyJoiningMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for LegacyJoiningProxy
impl !RefUnwindSafe for LegacyJoiningProxy
impl Send for LegacyJoiningProxy
impl Sync for LegacyJoiningProxy
impl Unpin for LegacyJoiningProxy
impl !UnwindSafe for LegacyJoiningProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)