Struct kay::Packet[][src]

#[repr(C)]
pub struct Packet<M: Message> { pub recipient_id: RawID, pub message: M, }

Combination of a message and its destination recipient id

Fields

RawID of the Actor/Actor that should receive this message

The message itself

Trait Implementations

impl<M: Message> Compact for Packet<M>
[src]

Is the object's dynamic part stored compactly?

Size of the dynamic part in bytes

Copy the static part of source to dest and compactly store the dynamic part of source as the new dynamic part of dest at new_dynamic_part. This semantically moves source into dest. Read more

Creates a clone of self with the dynamic part guaranteed to be stored freely. Read more

Total size of the object (static part + dynamic part)

Get a pointer to behind the static part of self (commonly used place for the dynamic part)

Like compact with new_dynamic_part set to dest.behind()

impl<M: Clone + Message> Clone for Packet<M>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<M> Send for Packet<M> where
    M: Send

impl<M> Sync for Packet<M> where
    M: Sync