pub trait PlatTrel {
// Required methods
fn plat_trel_handle_received(&self, packet: &[u8]);
fn plat_trel_handle_discovered_peer_info(
&self,
peer_info: &PlatTrelPeerInfo<'_>,
);
}
Expand description
Platform methods from the OpenThread TREL Module.
Required Methods§
Sourcefn plat_trel_handle_received(&self, packet: &[u8])
fn plat_trel_handle_received(&self, packet: &[u8])
This function is a callback from platform to notify of a received TREL UDP packet.
Sourcefn plat_trel_handle_discovered_peer_info(
&self,
peer_info: &PlatTrelPeerInfo<'_>,
)
fn plat_trel_handle_discovered_peer_info( &self, peer_info: &PlatTrelPeerInfo<'_>, )
This is a callback function from platform layer to report a discovered TREL peer info.