Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: use &self with TcpListener::accept #2919

Merged
merged 9 commits into from Oct 8, 2020
Merged

Commits on Oct 6, 2020

  1. net: use &self with TcpListener::accept

    Uses the infrastructure added by #2828 to enable switching
    `TcpListener::accept` to use `&self`.
    
    This also switches `poll_accept` to use `&self`. While doing introduces
    a hazard, `poll_*` style functions are considered low-level. Most users
    will use the `async fn` variants which are more misuse-resistant.
    
    TcpListener::incoming() is temporarily removed as it has the same
    problem as `TcpSocket::by_ref()` and will be implemented later.
    carllerche committed Oct 6, 2020
    Copy the full SHA
    4889d97 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2020

  1. Copy the full SHA
    794d357 View commit details
    Browse the repository at this point in the history
  2. fix feature build

    carllerche committed Oct 7, 2020
    Copy the full SHA
    40af6af View commit details
    Browse the repository at this point in the history
  3. fix examples

    carllerche committed Oct 7, 2020
    Copy the full SHA
    4fa7182 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    b498b04 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2020

  1. fix shutdown bug

    carllerche committed Oct 8, 2020
    Copy the full SHA
    a8fed9b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7164656 View commit details
    Browse the repository at this point in the history
  3. fix merge

    carllerche committed Oct 8, 2020
    Copy the full SHA
    5b21c0a View commit details
    Browse the repository at this point in the history
  4. clippy

    carllerche committed Oct 8, 2020
    Copy the full SHA
    8601368 View commit details
    Browse the repository at this point in the history