cometd_client/
types.rs

1mod channel;
2mod command;
3mod error;
4mod event;
5mod message;
6
7/// Contains different implementations for `AccessToken` trait.
8pub mod access_token;
9
10use tokio::sync::mpsc;
11
12pub(crate) use command::*;
13pub use {access_token::AccessToken, channel::*, error::*, event::*, message::*};
14
15pub(crate) type InactiveEventReceiver<Msg> =
16    async_broadcast::InactiveReceiver<CometdClientEvent<Msg>>;
17pub(crate) type EventSender<Msg> = async_broadcast::Sender<CometdClientEvent<Msg>>;
18
19pub(crate) type CmdReceiver = mpsc::Receiver<Command>;
20pub(crate) type CmdSender = mpsc::Sender<Command>;