Struct aurum_actors::core::UdpSerial [−][src]
pub struct UdpSerial { /* fields omitted */ }
Expand description
A fully serialized message, to be sent over UDP.
A message sent over the wire includes a Destination
and a message. UdpSerial
serializes
both of them and places them in buffer delimited with packet headers. If a message is too large
to fit in a single packets, it is split into multiple packets.
To send a UdpSerial
, use Node::udp
and
Node::udp_select
.
Implementations
The size of each packet sent of UDP, including the header.
The total length of the serialized message, excluding the headers.
pub fn msg<U, I>(dest: &Destination<U, I>, item: &I) -> Self where
U: UnifiedType + Case<I>,
I: Serialize + DeserializeOwned,
pub fn msg<U, I>(dest: &Destination<U, I>, item: &I) -> Self where
U: UnifiedType + Case<I>,
I: Serialize + DeserializeOwned,
Creates a UdpSerial
by serializing a message and a Destination
pub fn sig<U, I>(dest: &Destination<U, I>, sig: &ActorSignal) -> Self where
U: UnifiedType + Case<I>,
I: Serialize + DeserializeOwned,
pub fn sig<U, I>(dest: &Destination<U, I>, sig: &ActorSignal) -> Self where
U: UnifiedType + Case<I>,
I: Serialize + DeserializeOwned,
Creates a UdpSerial
by serializing an ActorSignal
and a Destination
Auto Trait Implementations
impl RefUnwindSafe for UdpSerial
impl UnwindSafe for UdpSerial
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub unsafe fn to_subset_unchecked(&self) -> SS
pub unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V