acktor_ipc/node/event.rs
1use acktor::{Address, Message};
2
3use crate::session::Session;
4
5/// A message which is used to notify the receiver of an IPC session is created or deleted.
6#[derive(Debug, Clone)]
7pub enum NodeEvent {
8 SessionCreated(Address<Session>, String),
9 SessionDeleted(Address<Session>),
10}
11
12impl Message for NodeEvent {
13 type Result = ();
14}