pub enum PpaassPacketPayload {
KeyExchange,
Content {
src_address: UnifiedAddress,
dest_address: UnifiedAddress,
data: Bytes,
},
}Expand description
The payload of the packet
Variants§
KeyExchange
The payload is used for encryption key exchange, the content of the encryption is the encryption key, the encryption key is encrypted with RSA
Content
The payload is used for transfer data.
Fields
§
src_address: UnifiedAddressThe source address of the payload
§
dest_address: UnifiedAddressThe destination address of the payload
Trait Implementations§
Source§impl Debug for PpaassPacketPayload
impl Debug for PpaassPacketPayload
Source§impl<'de> Deserialize<'de> for PpaassPacketPayload
impl<'de> Deserialize<'de> for PpaassPacketPayload
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 Serialize for PpaassPacketPayload
impl Serialize for PpaassPacketPayload
Source§impl TryFrom<Bytes> for PpaassPacketPayload
impl TryFrom<Bytes> for PpaassPacketPayload
Source§impl TryFrom<PpaassPacketPayload> for Bytes
impl TryFrom<PpaassPacketPayload> 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 PpaassPacketPayload
impl RefUnwindSafe for PpaassPacketPayload
impl Send for PpaassPacketPayload
impl Sync for PpaassPacketPayload
impl Unpin for PpaassPacketPayload
impl UnwindSafe for PpaassPacketPayload
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