Type Alias vector_core::tls::MaybeTlsStream

source ·
pub type MaybeTlsStream<S> = MaybeTls<S, SslStream<S>>;

Aliased Type§

enum MaybeTlsStream<S> {
    Raw(S),
    Tls(SslStream<S>),
}

Variants§

§

Raw(S)

§

Tls(SslStream<S>)

Implementations§

source§

impl MaybeTlsStream<TcpStream>

source

pub fn peer_addr(&self) -> Result<SocketAddr, Error>

source

pub fn set_keepalive(&mut self, keepalive: TcpKeepaliveConfig) -> Result<()>

source

pub fn set_send_buffer_bytes(&mut self, bytes: usize) -> Result<()>

source

pub fn set_receive_buffer_bytes(&mut self, bytes: usize) -> Result<()>