std::net::Shutdown

Enum std::net::Shutdown

pub enum Shutdown {
    Read,
    Write,
    Both,
}

Possible values which can be passed to the shutdown method of TcpStream.

Variants

The reading portion of the TcpStream should be shut down.

All currently blocked and future reads will return Ok(0).

The writing portion of the TcpStream should be shut down.

All currently blocked and future writes will return an error.

Both the reading and the writing portions of the TcpStream should be shut down.

See Shutdown::Read and Shutdown::Write for more information.

Trait Implementations

impl Copy for Shutdown [src]

impl Clone for Shutdown [src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Shutdown [src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Shutdown [src]

impl Debug for Shutdown [src]

Formats the value using the given formatter.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/net/enum.Shutdown.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部