pub struct AeadPack {
pub nonce: Nonce,
pub ciphertext: Vec<u8>,
}Expand description
Encrypted data with the nonce.
Fields§
§nonce: NonceNumber once value.
ciphertext: Vec<u8>Encrypted cipher text.
Trait Implementations§
Source§impl Decodable for AeadPack
impl Decodable for AeadPack
Source§impl<'de> Deserialize<'de> for AeadPack
impl<'de> Deserialize<'de> for AeadPack
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
Source§impl Encodable for AeadPack
impl Encodable for AeadPack
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
impl Eq for AeadPack
impl StructuralPartialEq for AeadPack
Auto Trait Implementations§
impl Freeze for AeadPack
impl RefUnwindSafe for AeadPack
impl Send for AeadPack
impl Sync for AeadPack
impl Unpin for AeadPack
impl UnwindSafe for AeadPack
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