Module nri::comms
[-] [+]
[src]
Utilities for communication between the supervisor thread and services
Reexports
use std::prelude::v1::*; |
use std::sync::mpsc::{channel, Sender, Receiver, RecvError, TryRecvError, SendError}; |
use std::thread; |
use std::mem; |
Structs
RestartableThread | Container for a thread that repeatedly performs some action in response to input. Can be stopped and restarted. |
Enums
CmdFrom | Commands sent from services up to the supervisor thread |
CmdTo | Commands sent from the supervisor thread to services |
Traits
Controllable | A service that can be setup and torn down based on commands from a higher power. |
Functions
go | Service driving function |