coerce/remote/stream/
alerts.rs

1// use std::net::SocketAddr;
2// use std::sync::Arc;
3//
4// pub struct AlertTopic;
5//
6// #[derive(Debug)]
7// pub enum SystemAlert {
8//     // Fired when a client has attempted to connect to this system as a cluster peer,
9//     // sent a valid identify payload, but the token failed validation and/or authentication.
10//     AuthenticationFailure(Arc<AuthenticationFailure>),
11// }
12//
13// pub struct AuthenticationFailure {
14//     client_addr: SocketAddr,
15//     token: Vec<u8>,
16// }
17//
18// impl AuthenticationFailure {
19//     pub fn new(client_addr: SocketAddr, token: Vec<u8>) -> AuthenticationFailure {
20//         Self { client_addr, token }
21//     }
22// }