Struct navactor::json_decoder::JsonDecoder
source · pub struct JsonDecoder {
pub receiver: Receiver<MessageEnvelope>,
pub output: ActorHandle,
}
Expand description
actor accepts numerical json and converts into the internal state data msg
Fields§
§receiver: Receiver<MessageEnvelope>
§output: ActorHandle
Trait Implementations§
source§impl Actor for JsonDecoder
impl Actor for JsonDecoder
fn stop<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§fn handle_envelope<'life0, 'async_trait>(
&'life0 mut self,
envelope: MessageEnvelope
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_envelope<'life0, 'async_trait>(
&'life0 mut self,
envelope: MessageEnvelope
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
the function to implement per actor