pub trait InternalCommandSender {
// Required methods
fn broadcast(&mut self, internal_cmd: InternalStorageCommand);
fn next(&mut self) -> Option<InternalStorageCommand>;
}
Expand description
Allows broadcasting internal commands
to all
workers.
Required Methods§
sourcefn broadcast(&mut self, internal_cmd: InternalStorageCommand)
fn broadcast(&mut self, internal_cmd: InternalStorageCommand)
Broadcasts the given command to all workers.
sourcefn next(&mut self) -> Option<InternalStorageCommand>
fn next(&mut self) -> Option<InternalStorageCommand>
Returns the next available command, if any. This returns None
when
there are currently no commands but there might be commands again in the
future.