Struct kay::External[][src]

pub struct External<T> { /* fields omitted */ }

An owning reference to local state outside the actor system that can safely be embedded in actor states and passed in messages, as long as they stay on one machine.

Methods

impl<T> External<T>
[src]

Allocate content on the heap and create a sharable External reference to it

To interface with traditional owned boxes

Like clone, just to make the danger more clear

To interface with traditional owned boxes

Trait Implementations

impl<T> Clone for External<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Deref for External<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T> DerefMut for External<T>
[src]

Mutably dereferences the value.

impl<T> Compact for External<T>
[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()

Auto Trait Implementations

impl<T> Send for External<T> where
    T: Send

impl<T> !Sync for External<T>