Struct ppaass_protocol::message::payload::udp::ProxyUdpPayload
source · pub struct ProxyUdpPayload {
pub src_address: PpaassUnifiedAddress,
pub dst_address: PpaassUnifiedAddress,
pub data: Bytes,
}Fields§
§src_address: PpaassUnifiedAddress§dst_address: PpaassUnifiedAddress§data: BytesImplementations§
source§impl ProxyUdpPayload
impl ProxyUdpPayload
pub fn new( src_address: PpaassUnifiedAddress, dst_address: PpaassUnifiedAddress, data: Bytes ) -> ProxyUdpPayload
Trait Implementations§
source§impl Debug for ProxyUdpPayload
impl Debug for ProxyUdpPayload
source§impl<'de> Deserialize<'de> for ProxyUdpPayload
impl<'de> Deserialize<'de> for ProxyUdpPayload
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 ProxyUdpPayload
impl Serialize for ProxyUdpPayload
source§impl TryFrom<Bytes> for ProxyUdpPayload
impl TryFrom<Bytes> for ProxyUdpPayload
source§impl TryFrom<ProxyUdpPayload> for Bytes
impl TryFrom<ProxyUdpPayload> for Bytes
§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for ProxyUdpPayload
impl Send for ProxyUdpPayload
impl Sync for ProxyUdpPayload
impl Unpin for ProxyUdpPayload
impl UnwindSafe for ProxyUdpPayload
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