# Enum std::net::Shutdown 1.0.0 [−] [src]

    pub enum Shutdown {
        Read,
        Write,
        Both,
    }

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

## Variants

`Read`

The reading portion of the `TcpStream` should be shut down.

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

`Write`

The writing portion of the `TcpStream` should be shut down.

All currently blocked and future writes will return an error.

`Both`

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]

####

`fn clone(&self) -> Shutdown`

[src]

Returns a copy of the value. Read more

####

`fn clone_from(&mut self, source: &Self)`

[src]

Performs copy-assignment from `source`. Read more

###

`impl PartialEq for Shutdown`

[src]

####

`fn eq(&self, __arg_0: &Shutdown) -> bool`

[src]

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

####

`fn ne(&self, other: &Rhs) -> bool`

[src]

This method tests for `!=`.

###

`impl Eq for Shutdown`

[src]

###

`impl Debug for Shutdown`

[src]

####

`fn fmt(&self, __arg_0: &mut Formatter) -> Result`

[src]

Formats the value using the given formatter. Read more

## Auto Trait Implementations

###

`impl Send for Shutdown`

###

`impl Sync for Shutdown`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)