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