We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
notify_completion()
1 parent 91e5642 commit cbe49f7Copy full SHA for cbe49f7
src/platform/windows/mod.rs
@@ -449,7 +449,11 @@ impl MessageReader {
449
}
450
451
/// Called when we receive an IO Completion Packet for this handle.
452
- fn notify_completion(&mut self, err: u32) -> Result<(),WinError> {
+ ///
453
+ /// Unsafe, since as far as I can tell, the soundness of this method
454
+ /// relies on the validity of the `self` object (specifically, `self.ov`)
455
+ /// passed in by the caller.
456
+ unsafe fn notify_completion(&mut self, err: u32) -> Result<(),WinError> {
457
win32_trace!("[$ {:?}] notify_completion", self.handle);
458
459
// mark a read as no longer in progress even before we check errors
0 commit comments