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

m(windows): Reimplement Wepoll in Rust #88

Merged
merged 8 commits into from
Mar 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
notgull committed Mar 5, 2023
commit c3ab16109ce2a86aaafe1717c56deb3c83a5f9de
6 changes: 3 additions & 3 deletions src/iocp/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub(super) unsafe trait CompletionHandle: Deref + Sized {
type Completion: Completion;

/// Get a pointer to the completion block.
///
///
/// The pointer is pinned since the underlying object should not be moved
/// after creation. This prevents it from being invalidated while it's
/// used in an overlapped operation.
Expand Down Expand Up @@ -277,9 +277,9 @@ impl<T: CompletionHandle> OverlappedEntry<T> {
}

/// Get the packet reference that this entry refers to.
///
///
/// # Safety
///
///
/// This function should only be called once, since it moves
/// out the `T` from the `OVERLAPPED_ENTRY`.
unsafe fn packet(&self) -> T {
fogti marked this conversation as resolved.
Show resolved Hide resolved
Expand Down