Struct fibers_http_client::connection::Connection [−][src]
pub struct Connection { /* fields omitted */ }
TCP connection.
Methods
impl Connection
[src]
impl Connection
pub fn new(peer_addr: SocketAddr, stream: TcpStream) -> Self
[src]
pub fn new(peer_addr: SocketAddr, stream: TcpStream) -> Self
Makes a new Connection
instance.
pub fn peer_addr(&self) -> SocketAddr
[src]
pub fn peer_addr(&self) -> SocketAddr
Returns the TCP address of the peer.
Trait Implementations
impl AsMut<Connection> for RentedConnection
[src]
impl AsMut<Connection> for RentedConnection
fn as_mut(&mut self) -> &mut Connection
[src]
fn as_mut(&mut self) -> &mut Connection
Performs the conversion.
impl Debug for Connection
[src]
impl Debug for Connection
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsMut<Connection> for Connection
[src]
impl AsMut<Connection> for Connection
Auto Trait Implementations
impl Send for Connection
impl Send for Connection
impl !Sync for Connection
impl !Sync for Connection