Enum ppaass_protocol::message::payload::tcp::AgentTcpPayload
source · pub enum AgentTcpPayload {
Init {
src_address: PpaassUnifiedAddress,
dst_address: PpaassUnifiedAddress,
},
Data {
content: Bytes,
},
}Variants§
Trait Implementations§
source§impl Debug for AgentTcpPayload
impl Debug for AgentTcpPayload
source§impl<'de> Deserialize<'de> for AgentTcpPayload
impl<'de> Deserialize<'de> for AgentTcpPayload
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 AgentTcpPayload
impl Serialize for AgentTcpPayload
source§impl TryFrom<AgentTcpPayload> for Bytes
impl TryFrom<AgentTcpPayload> for Bytes
§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for AgentTcpPayload
impl Send for AgentTcpPayload
impl Sync for AgentTcpPayload
impl Unpin for AgentTcpPayload
impl UnwindSafe for AgentTcpPayload
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