pub enum StreamType {
Tcp(TcpStream),
Tls(Box<TlsStream<TcpStream>>),
Unix(UnixStream),
}Expand description
Stream for Tcp and Unix connection
Variants§
Tcp(TcpStream)
tcp stream
Tls(Box<TlsStream<TcpStream>>)
tls stream
Unix(UnixStream)
unix socket stream
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StreamType
impl RefUnwindSafe for StreamType
impl Send for StreamType
impl Sync for StreamType
impl Unpin for StreamType
impl UnwindSafe for StreamType
Blanket Implementations§
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