pub struct DeviceExtraProxy { /* private fields */ }
Implementations§
Source§impl DeviceExtraProxy
impl DeviceExtraProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.device/DeviceExtra.
Sourcepub fn take_event_stream(&self) -> DeviceExtraEventStream
pub fn take_event_stream(&self) -> DeviceExtraEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_credential(
&self,
) -> QueryResponseFut<Option<Box<Credential>>, DefaultFuchsiaResourceDialect>
pub fn get_credential( &self, ) -> QueryResponseFut<Option<Box<Credential>>, DefaultFuchsiaResourceDialect>
Fetches the current credential.
The returned credential will have originated from a previous call
to ProvisionNetwork
, JoinNetwork
, or FormNetwork
. If the
device is not provisioned (for example, by calling LeaveNetwork()
)
then this method returns nothing.
Sourcepub fn watch_identity(
&self,
) -> QueryResponseFut<Identity, DefaultFuchsiaResourceDialect>
pub fn watch_identity( &self, ) -> QueryResponseFut<Identity, DefaultFuchsiaResourceDialect>
Observes changes to the current network identity.
First call always returns a snapshot of the current identity. Subsequent calls will block until the identity has changed, upon which the entire updated identity is returned.
If there is no identity currently associated with the device, then the returned identity will be empty.
Changes are not queued. The returned identity always represents the latest and most accurate value, even if several changes had happened in-between calls.
Note that the changes are NOT incremental: whenever there is a change, the entire current LoWPAN identity is returned.
The value of the identity can be changed by any of the following calls:
Device.ProvisionNetwork()
Device.LeaveNetwork()
DeviceExtra.JoinNetwork()
DeviceExtra.FormNetwork()
Sourcepub fn get_current_mac_address(
&self,
) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect>
pub fn get_current_mac_address( &self, ) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect>
Returns the current MAC address being used for this device, which may differ from the static factory-assigned MAC address.
This address is generally static, but may change when the device is re-associated to a different network or a factory reset is performed.
Trait Implementations§
Source§impl Clone for DeviceExtraProxy
impl Clone for DeviceExtraProxy
Source§fn clone(&self) -> DeviceExtraProxy
fn clone(&self) -> DeviceExtraProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceExtraProxy
impl Debug for DeviceExtraProxy
Source§impl DeviceExtraProxyInterface for DeviceExtraProxy
impl DeviceExtraProxyInterface for DeviceExtraProxy
type GetCredentialResponseFut = QueryResponseFut<Option<Box<Credential>>>
type WatchIdentityResponseFut = QueryResponseFut<Identity>
type GetCurrentMacAddressResponseFut = QueryResponseFut<MacAddress>
fn get_credential(&self) -> Self::GetCredentialResponseFut
fn watch_identity(&self) -> Self::WatchIdentityResponseFut
fn get_current_mac_address(&self) -> Self::GetCurrentMacAddressResponseFut
Source§impl Proxy for DeviceExtraProxy
impl Proxy for DeviceExtraProxy
Source§type Protocol = DeviceExtraMarker
type Protocol = DeviceExtraMarker
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 DeviceExtraProxy
impl !RefUnwindSafe for DeviceExtraProxy
impl Send for DeviceExtraProxy
impl Sync for DeviceExtraProxy
impl Unpin for DeviceExtraProxy
impl !UnwindSafe for DeviceExtraProxy
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
)