tab_websocket/bus/
connection.rs

1use crate::{
2    message::connection::{WebsocketRecv, WebsocketSend},
3    resource::{connection::WebsocketResource, listener::WebsocketAuthToken},
4};
5use lifeline::{prelude::*, Resource};
6use tokio::sync::mpsc;
7
8lifeline_bus!(pub struct WebsocketConnectionBus);
9
10impl Message<WebsocketConnectionBus> for WebsocketRecv {
11    type Channel = mpsc::Sender<Self>;
12}
13
14impl Message<WebsocketConnectionBus> for WebsocketSend {
15    type Channel = mpsc::Sender<Self>;
16}
17
18impl Resource<WebsocketConnectionBus> for WebsocketResource {}
19impl Resource<WebsocketConnectionBus> for WebsocketAuthToken {}