[−][src]Trait arcon::prelude::prelude::Actor
Handles both local and networked messages.
Required methods
fn receive_local(&mut self, sender: ActorRef, msg: &(dyn Any + 'static))
Handles local messages.
Note that the default implementation for ActorRaw
based on this Actor
will deallocate
owned (Box<Any>
) and shared (Arc<Any>
) references after this method finishes.
If you want to keep the message and really don't want to pay the cost of a clone invokation here,
you must implement ActorRaw
instead.
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
Handles (serialised) messages from the network.
Implementors
impl Actor for DeadletterBox
[src]
fn receive_local(&mut self, sender: ActorRef, msg: &(dyn Any + 'static))
[src]
fn receive_message(
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
impl Actor for LocalDispatcher
[src]
fn receive_local(&mut self, sender: ActorRef, msg: &(dyn Any + 'static))
[src]
fn receive_message(
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
impl Actor for NetworkDispatcher
[src]
fn receive_local(&mut self, sender: ActorRef, msg: &(dyn Any + 'static))
[src]
fn receive_message(
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
ser_id: u64,
_buf: &mut dyn Buf
)
impl Actor for Manager
[src]
fn receive_local(&mut self, _sender: ActorRef, _msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl Actor for IO
[src]
fn receive_local(&mut self, _sender: ActorRef, _msg: &dyn Any)
[src]
fn receive_message(
&mut self,
sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<A> Actor for DebugSink<A> where
A: ArconType + 'static,
[src]
A: ArconType + 'static,
fn receive_local(&mut self, _sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<A> Actor for LocalFileSink<A> where
A: ArconType + 'static,
[src]
A: ArconType + 'static,
fn receive_local(&mut self, _sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<A> Actor for SocketSink<A> where
A: ArconType + 'static,
[src]
A: ArconType + 'static,
fn receive_local(&mut self, _sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<A: ArconType + FromStr> Actor for LocalFileSource<A>
[src]
fn receive_local(&mut self, _sender: ActorRef, _msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<A: ArconType> Actor for CollectionSource<A>
[src]
fn receive_local(&mut self, _sender: ActorRef, _msg: &dyn Any)
[src]
fn receive_message(
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
_sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
impl<IN> Actor for Filter<IN> where
IN: 'static + ArconType,
[src]
IN: 'static + ArconType,
fn receive_local(&mut self, sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
[src]
impl<IN, FUNC, OUT> Actor for EventTimeWindowAssigner<IN, FUNC, OUT> where
IN: 'static + ArconType + Hash,
FUNC: 'static + Clone,
OUT: 'static + ArconType,
[src]
IN: 'static + ArconType + Hash,
FUNC: 'static + Clone,
OUT: 'static + ArconType,
fn receive_local(&mut self, sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
[src]
impl<IN, FUNC, OUT> Actor for ProcessingTimeWindowAssigner<IN, FUNC, OUT> where
IN: 'static + ArconType + Hash,
FUNC: 'static + Clone,
OUT: 'static + ArconType,
[src]
IN: 'static + ArconType + Hash,
FUNC: 'static + Clone,
OUT: 'static + ArconType,
fn receive_local(&mut self, sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
[src]
impl<IN, OUT> Actor for FlatMap<IN, OUT> where
IN: 'static + ArconType,
OUT: 'static + ArconType,
[src]
IN: 'static + ArconType,
OUT: 'static + ArconType,
fn receive_local(&mut self, sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
[src]
impl<IN, OUT> Actor for Map<IN, OUT> where
IN: 'static + ArconType,
OUT: 'static + ArconType,
[src]
IN: 'static + ArconType,
OUT: 'static + ArconType,
fn receive_local(&mut self, sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(&mut self, sender: ActorPath, ser_id: u64, buf: &mut dyn Buf)
[src]
impl<OUT> Actor for SocketSource<OUT> where
OUT: 'static + ArconType + FromStr,
[src]
OUT: 'static + ArconType + FromStr,
fn receive_local(&mut self, _sender: ActorRef, msg: &dyn Any)
[src]
fn receive_message(
&mut self,
sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)
[src]
&mut self,
sender: ActorPath,
_ser_id: u64,
_buf: &mut dyn Buf
)