diff options
| author | s-ol <s+removethis@s-ol.nu> | 2026-03-29 08:53:43 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2026-03-29 08:53:43 +0000 |
| commit | a10be4d06314db7ff9e2d9bb57b696b4e8c20e14 (patch) | |
| tree | 28fae3c15fcb224cd89d7f2e28fe9a9a50c468d6 | |
| parent | fix no_std (diff) | |
| download | meshcore-rs-wdillon/non-owned.tar.gz meshcore-rs-wdillon/non-owned.zip | |
expose decoded GroupText contentswdillon/non-owned
| -rw-r--r-- | packet-lib/src/text.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-lib/src/text.rs b/packet-lib/src/text.rs index 1f3b955..24bd220 100644 --- a/packet-lib/src/text.rs +++ b/packet-lib/src/text.rs @@ -6,7 +6,7 @@ use chrono::DateTime; #[derive(PartialEq, Debug, Clone)] pub struct Text<'a> { - pub cipher: PeerToPeerCipher<'a>, + pub(crate) cipher: PeerToPeerCipher<'a>, pub cleartext: Option<ClearText>, } @@ -177,10 +177,10 @@ impl core::fmt::Display for GroupData { #[derive(PartialEq, Clone, core::fmt::Debug)] pub struct GroupText<'a> { - hash: u8, - mac: u16, - ciphertext: &'a [u8], - cleartext: Option<ClearText>, + pub(crate) hash: u8, + pub(crate) mac: u16, + pub(crate) ciphertext: &'a [u8], + pub cleartext: Option<ClearText>, } impl<'a> TryFrom<&'a [u8]> for GroupText<'a> { |
