Trait aurum_actors::core::RootMessage [−][src]
pub trait RootMessage<U: UnifiedType + Case<Self>> where
Self: Sized + Send + 'static, { fn has_interface(interface: U) -> bool; }
Expand description
Denotes message types that Actor
receives.
This trait shoud not be implemented manually. The AurumInterface
derive macro will implement it. Feel free to use it in trait bounds.
Required methods
fn has_interface(interface: U) -> bool
fn has_interface(interface: U) -> bool
Tests if this root message type has an interface for the type corresponding to the given
variant of our UnifiedType
.
Implementors
impl<__Unified> RootMessage<__Unified> for DeviceServerMsg where
__Unified: UnifiedType + Case<DeviceServerRemoteMsg> + Case<DeviceServerMsg>,
impl<__Unified> RootMessage<__Unified> for HBReqSenderMsg where
__Unified: UnifiedType + Case<HBReqSenderRemoteMsg> + Case<HBReqSenderMsg>,
impl<__Unified> RootMessage<__Unified> for ClusterEvent where
__Unified: UnifiedType + Case<ClusterEvent>,
impl<__Unified> RootMessage<__Unified> for ClusterEventSimple where
__Unified: UnifiedType + Case<ClusterEventSimple>,
impl<__Unified> RootMessage<__Unified> for LoggerMsg where
__Unified: UnifiedType + Case<LoggerMsg>,
impl<__Unified, S: CRDT> RootMessage<__Unified> for CausalMsg<S> where
__Unified: UnifiedType + Case<CausalIntraMsg<S>> + Case<CausalMsg<S>>,
impl<__Unified, U: UnifiedType> RootMessage<__Unified> for DeviceClientMsg<U> where
__Unified: UnifiedType + Case<DeviceClientRemoteMsg<U>> + Case<DeviceClientMsg<U>>,