Struct aurum_actors::core::ActorRef [−][src]
pub struct ActorRef<U: UnifiedType + Case<I>, I> { pub socket: Socket, pub dest: Destination<U, I>, // some fields omitted }
Expand description
A location-transparent local actor reference.
Fields
socket: Socket
dest: Destination<U, I>
Implementations
Sends the message over the network, regardless of whether the local reference exists
impl<U: UnifiedType + Case<S>, S> ActorRef<U, S> where
S: Send + Serialize + DeserializeOwned + 'static,
impl<U: UnifiedType + Case<S>, S> ActorRef<U, S> where
S: Send + Serialize + DeserializeOwned + 'static,
Trait Implementations
impl<'de, U: UnifiedType + Case<I>, I> Deserialize<'de> for ActorRef<U, I> where
U: Serialize + DeserializeOwned,
impl<'de, U: UnifiedType + Case<I>, I> Deserialize<'de> for ActorRef<U, I> where
U: Serialize + DeserializeOwned,
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
impl<U: UnifiedType + Case<I>, I> Serialize for ActorRef<U, I> where
U: Serialize + DeserializeOwned,
impl<U: UnifiedType + Case<I>, I> Serialize for ActorRef<U, I> where
U: Serialize + DeserializeOwned,
Auto Trait Implementations
impl<U, I> !RefUnwindSafe for ActorRef<U, I>
impl<U, I> !UnwindSafe for ActorRef<U, I>
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