Struct sozu_lib::network::protocol::proxy_protocol::send::SendProxyProtocol [−][src]
pub struct SendProxyProtocol<Front: SocketHandler> { pub header: Option<Vec<u8>>, pub frontend: Front, pub backend: Option<TcpStream>, pub frontend_token: Token, pub backend_token: Option<Token>, pub readiness: Readiness, // some fields omitted }
Fields
header: Option<Vec<u8>>
frontend: Front
backend: Option<TcpStream>
frontend_token: Token
backend_token: Option<Token>
readiness: Readiness
Methods
impl<Front: SocketHandler + Read> SendProxyProtocol<Front>[src]
impl<Front: SocketHandler + Read> SendProxyProtocol<Front>pub fn new(
frontend: Front,
frontend_token: Token,
backend: Option<TcpStream>
) -> Self[src]
pub fn new(
frontend: Front,
frontend_token: Token,
backend: Option<TcpStream>
) -> Selfpub fn back_writable(&mut self) -> (ProtocolResult, ClientResult)[src]
pub fn back_writable(&mut self) -> (ProtocolResult, ClientResult)pub fn front_socket(&self) -> &TcpStream[src]
pub fn front_socket(&self) -> &TcpStreampub fn back_socket(&self) -> Option<&TcpStream>[src]
pub fn back_socket(&self) -> Option<&TcpStream>pub fn set_back_socket(&mut self, socket: TcpStream)[src]
pub fn set_back_socket(&mut self, socket: TcpStream)pub fn back_token(&self) -> Option<Token>[src]
pub fn back_token(&self) -> Option<Token>pub fn set_back_token(&mut self, token: Token)[src]
pub fn set_back_token(&mut self, token: Token)pub fn set_back_connected(&mut self, status: BackendConnectionStatus)[src]
pub fn set_back_connected(&mut self, status: BackendConnectionStatus)pub fn readiness(&mut self) -> &mut Readiness[src]
pub fn readiness(&mut self) -> &mut Readinesspub fn into_pipe(
self,
front_buf: Checkout<BufferQueue>,
back_buf: Checkout<BufferQueue>
) -> Pipe<Front>[src]
pub fn into_pipe(
self,
front_buf: Checkout<BufferQueue>,
back_buf: Checkout<BufferQueue>
) -> Pipe<Front>Auto Trait Implementations
impl<Front> Send for SendProxyProtocol<Front> where
Front: Send,
impl<Front> Send for SendProxyProtocol<Front> where
Front: Send, impl<Front> Sync for SendProxyProtocol<Front> where
Front: Sync,
impl<Front> Sync for SendProxyProtocol<Front> where
Front: Sync,