use rocketmq_rust::WeakArcMut;
use tokio::net::TcpStream;
use crate::ha::general_ha_connection::GeneralHAConnection;
use crate::ha::ha_connection::HAConnection;
use crate::ha::ha_connection::HAConnectionId;
use crate::ha::ha_connection_state::HAConnectionState;
use crate::ha::HAConnectionError;
pub struct AutoSwitchHAConnection;
impl HAConnection for AutoSwitchHAConnection {
async fn start(
&mut self,
conn: WeakArcMut<GeneralHAConnection>,
) -> Result<(), HAConnectionError> {
todo!()
}
async fn shutdown(&mut self) {
todo!()
}
fn close(&self) {
todo!()
}
fn get_socket(&self) -> &TcpStream {
todo!()
}
async fn get_current_state(&self) -> HAConnectionState {
todo!()
}
fn get_client_address(&self) -> &str {
todo!()
}
fn get_transferred_byte_in_second(&self) -> i64 {
todo!()
}
fn get_transfer_from_where(&self) -> i64 {
todo!()
}
fn get_slave_ack_offset(&self) -> i64 {
todo!()
}
fn get_ha_connection_id(&self) -> &HAConnectionId {
todo!()
}
}