Skip to main content

CloseSocket

Trait CloseSocket 

Source
pub trait CloseSocket {
    // Required method
    fn close(&mut self) -> Result<()>;
}
Expand description

Trait to close underlying socket

Required Methods§

Source

fn close(&mut self) -> Result<()>

Implementations on Foreign Types§

Source§

impl CloseSocket for TcpStream

Source§

fn close(&mut self) -> Result<()>

Implementors§