pub struct MeshcopSynchronousProxy { /* private fields */ }
Implementations§
Source§impl MeshcopSynchronousProxy
impl MeshcopSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MeshcopEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MeshcopEvent, 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 update_txt_entries(
&self,
txt_entries: &[TxtEntries],
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn update_txt_entries( &self, txt_entries: &[TxtEntries], ___deadline: MonotonicInstant, ) -> Result<(), Error>
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 Debug for MeshcopSynchronousProxy
impl Debug for MeshcopSynchronousProxy
Source§impl SynchronousProxy for MeshcopSynchronousProxy
impl SynchronousProxy for MeshcopSynchronousProxy
Source§type Proxy = MeshcopProxy
type Proxy = MeshcopProxy
The async proxy for the same protocol.
Source§type Protocol = MeshcopMarker
type Protocol = MeshcopMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for MeshcopSynchronousProxy
impl RefUnwindSafe for MeshcopSynchronousProxy
impl Send for MeshcopSynchronousProxy
impl Sync for MeshcopSynchronousProxy
impl Unpin for MeshcopSynchronousProxy
impl UnwindSafe for MeshcopSynchronousProxy
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
Mutably borrows from an owned value. Read more