#![allow(dead_code)]
use crate::error::ZmqError;
use crate::Blob;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum ConnectionPhaseX {
Initial,
HandshakeInProgress,
WaitingForPipes,
Operational,
ShuttingDownStream,
Terminating,
}
#[derive(Debug, Clone)] pub(crate) enum ZmtpHandshakeProgressX {
InProgress,
IdentityReady(Blob),
HandshakeComplete,
ProtocolError(String),
FatalError(ZmqError),
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum HandshakeSubPhaseX {
GreetingExchange,
WaitingForGreeting,
SecurityHandshake,
ReadyExchange,
ClientSentReady,
ServerReceivedReady,
Done,
}