Struct amq_protocol_tcp::TcpStreamWrapper [−][src]
pub struct TcpStreamWrapper(_);
Expand description
Unsafe wrapper “Cloning” the TcpStream but not closing it on drop.
Implementations
Methods from Deref<Target = TcpStream>
Check whether the stream is connected or not
Retry the connection. Returns:
- Ok(true) if connected
- Ok(false) if connecting
- Err(_) if an error is encountered
Attempt reading from underlying stream, returning Ok(()) if the stream is readable
Attempt writing to underlying stream, returning Ok(()) if the stream is writable
Trait Implementations
Extracts the underlying raw socket from this object.