From 4c9c1f10a6bebffb41856a7e8c74c393759a3d3b Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Wed, 26 Jun 2024 19:15:28 +0000 Subject: [PATCH] Give axes to transport mgr RX and TX buffers --- rs-matter/src/core.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rs-matter/src/core.rs b/rs-matter/src/core.rs index fd1d7e04..a52c18ac 100644 --- a/rs-matter/src/core.rs +++ b/rs-matter/src/core.rs @@ -133,6 +133,14 @@ impl<'a> Matter<'a> { self.epoch } + pub fn transport_rx_buffer(&self) -> impl BufferAccess<[u8]> + '_ { + self.transport_mgr.rx_buffer() + } + + pub fn transport_tx_buffer(&self) -> impl BufferAccess<[u8]> + '_ { + self.transport_mgr.tx_buffer() + } + /// A utility method to replace the initial mDNS implementation with another one. /// /// Useful in particular with `MdnsService::Provided`, where the user would still like