pub struct DirectUdpMessage {
pub data: Binary,
pub remote_addr: Option<String>,
pub remote_port: Option<i64>,
}
Fields§
§data: Binary
§remote_addr: Option<String>
Null for connected mode.
remote_port: Option<i64>
Null for connected mode. Expected to be unsigned integer.
Implementations§
Source§impl DirectUdpMessage
impl DirectUdpMessage
pub fn new(data: impl Into<Binary>) -> DirectUdpMessage
Source§impl DirectUdpMessage
impl DirectUdpMessage
pub fn builder() -> DirectUdpMessageBuilder
Source§impl DirectUdpMessage
impl DirectUdpMessage
pub const IDENTIFIER: &'static str = "Network.DirectUDPMessage"
Trait Implementations§
Source§impl Clone for DirectUdpMessage
impl Clone for DirectUdpMessage
Source§fn clone(&self) -> DirectUdpMessage
fn clone(&self) -> DirectUdpMessage
Returns a duplicate 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 Debug for DirectUdpMessage
impl Debug for DirectUdpMessage
Source§impl<'de> Deserialize<'de> for DirectUdpMessage
impl<'de> Deserialize<'de> for DirectUdpMessage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DirectUdpMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DirectUdpMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirectUdpMessage
impl PartialEq for DirectUdpMessage
Source§impl Serialize for DirectUdpMessage
impl Serialize for DirectUdpMessage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DirectUdpMessage
Auto Trait Implementations§
impl Freeze for DirectUdpMessage
impl RefUnwindSafe for DirectUdpMessage
impl Send for DirectUdpMessage
impl Sync for DirectUdpMessage
impl Unpin for DirectUdpMessage
impl UnwindSafe for DirectUdpMessage
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