pub struct LocalCipherText(/* private fields */);Expand description
A sealed leaf: version(1) ‖ nonce ‖ ciphertext ‖ tag.
Implementations§
Source§impl LocalCipherText
impl LocalCipherText
pub fn into_inner(self) -> Bytes
pub fn into_reader(self) -> CipherTextReader
Sourcepub fn wire_version(&self) -> Option<u8>
pub fn wire_version(&self) -> Option<u8>
The stored wire-format version, readable without the key — for
diagnostics and migration tooling (an operator can tell “old
format” from “current format” on a decrypt failure). None means
the buffer is empty. This is an unauthenticated peek: trust it
for triage, never for parsing decisions outside the reader, which
re-checks it under the AEAD tag.
Trait Implementations§
Source§impl AsRef<[u8]> for LocalCipherText
impl AsRef<[u8]> for LocalCipherText
Source§impl Debug for LocalCipherText
impl Debug for LocalCipherText
Source§impl<'de> Deserialize<'de> for LocalCipherText
impl<'de> Deserialize<'de> for LocalCipherText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for LocalCipherText
impl RefUnwindSafe for LocalCipherText
impl Send for LocalCipherText
impl Sync for LocalCipherText
impl Unpin for LocalCipherText
impl UnsafeUnpin for LocalCipherText
impl UnwindSafe for LocalCipherText
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