pub enum TcpStateMachine {
Pipe(Pipe<TcpStream, TcpListener>),
SendProxyProtocol(SendProxyProtocol<TcpStream>),
RelayProxyProtocol(RelayProxyProtocol<TcpStream>),
ExpectProxyProtocol(ExpectProxyProtocol<TcpStream>),
FailedUpgrade(StateMarker),
}
Expand description
The various Stages of a TCP connection:
- optional (ExpectProxyProtocol | SendProxyProtocol | RelayProxyProtocol)
- Pipe
Variants§
Pipe(Pipe<TcpStream, TcpListener>)
SendProxyProtocol(SendProxyProtocol<TcpStream>)
RelayProxyProtocol(RelayProxyProtocol<TcpStream>)
ExpectProxyProtocol(ExpectProxyProtocol<TcpStream>)
FailedUpgrade(StateMarker)
Informs about upgrade failure, contains a summary the last valid State
Auto Trait Implementations§
impl !Freeze for TcpStateMachine
impl !RefUnwindSafe for TcpStateMachine
impl !Send for TcpStateMachine
impl !Sync for TcpStateMachine
impl Unpin for TcpStateMachine
impl !UnwindSafe for TcpStateMachine
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more