Struct fidl_fuchsia_lowpan_thread::MeshcopProxy
source · pub struct MeshcopProxy { /* private fields */ }
Implementations§
source§impl MeshcopProxy
impl MeshcopProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.thread/Meshcop.
sourcepub fn take_event_stream(&self) -> MeshcopEventStream
pub fn take_event_stream(&self) -> MeshcopEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn update_txt_entries(
&self,
txt_entries: &[TxtEntries],
) -> QueryResponseFut<()>
pub fn update_txt_entries( &self, txt_entries: &[TxtEntries], ) -> QueryResponseFut<()>
Updates the TXT record information associated with the Meshcop border agent DNS-SD entry. This allows additional information about the device to be discoverable on the local network when acting as a border agent.
Functionally equivalent to ot-br-posix
’s
UpdateVendorMeshCopTxtEntries
.
Typically, the following keys are updated:
vn
: Vendor Namemn
: Model Namevo
: Vendor OUIvd
/vcd
: Vendor-specific Data
See table 8-4 in section 8.4.1.1.2 of the Thread 1.2 specification for a detailed explanation of all the keys and their values.
Any error that prevents the operation from completing successfully (such as being provided with invalid keys) will result in the protocol being closed.
Trait Implementations§
source§impl Clone for MeshcopProxy
impl Clone for MeshcopProxy
source§fn clone(&self) -> MeshcopProxy
fn clone(&self) -> MeshcopProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MeshcopProxy
impl Debug for MeshcopProxy
source§impl MeshcopProxyInterface for MeshcopProxy
impl MeshcopProxyInterface for MeshcopProxy
type UpdateTxtEntriesResponseFut = QueryResponseFut<()>
fn update_txt_entries( &self, txt_entries: &[TxtEntries], ) -> Self::UpdateTxtEntriesResponseFut
source§impl Proxy for MeshcopProxy
impl Proxy for MeshcopProxy
§type Protocol = MeshcopMarker
type Protocol = MeshcopMarker
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 MeshcopProxy
impl !RefUnwindSafe for MeshcopProxy
impl Send for MeshcopProxy
impl Sync for MeshcopProxy
impl Unpin for MeshcopProxy
impl !UnwindSafe for MeshcopProxy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)