pub enum PpaassPacketPayloadEncryption {
Plain,
Aes(Bytes),
}
Expand description
The encryption of the packet payload
Variants§
Plain
The packet payload is not encrypted
Aes(Bytes)
The packet payload is encrypted with AES, the content of the variant is the encryption used for AES.
Trait Implementations§
Source§impl Clone for PpaassPacketPayloadEncryption
impl Clone for PpaassPacketPayloadEncryption
Source§fn clone(&self) -> PpaassPacketPayloadEncryption
fn clone(&self) -> PpaassPacketPayloadEncryption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for PpaassPacketPayloadEncryption
impl<'de> Deserialize<'de> for PpaassPacketPayloadEncryption
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 TryFrom<Bytes> for PpaassPacketPayloadEncryption
impl TryFrom<Bytes> for PpaassPacketPayloadEncryption
Source§impl TryFrom<PpaassPacketPayloadEncryption> for Bytes
impl TryFrom<PpaassPacketPayloadEncryption> for Bytes
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for PpaassPacketPayloadEncryption
impl RefUnwindSafe for PpaassPacketPayloadEncryption
impl Send for PpaassPacketPayloadEncryption
impl Sync for PpaassPacketPayloadEncryption
impl Unpin for PpaassPacketPayloadEncryption
impl UnwindSafe for PpaassPacketPayloadEncryption
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