rsvim_core/evloop/
msg.rs

1//! Messages used inside [`EventLoop`](crate::evloop::EventLoop).
2
3// Worker to Master message {
4
5#[derive(Debug)]
6/// Message.
7pub enum WorkerToMasterMessage {
8  ReadBytes(ReadBytes),
9}
10
11#[derive(Debug, Default)]
12/// Read bytes.
13pub struct ReadBytes {
14  pub bytes: usize,
15}
16
17impl ReadBytes {
18  pub fn new(bytes: usize) -> Self {
19    ReadBytes { bytes }
20  }
21}
22
23// Worker to Master message }