Skip to content

Commit

Permalink
win: Add note on how COM port is created
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Jun 28, 2022
1 parent 69529a7 commit ebe786e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ impl Drop for OverlappedHandle {
/// should not be instantiated directly by using `COMPort::open()`, instead use
/// the cross-platform `serialport::open()` or
/// `serialport::open_with_settings()`.
///
/// Port is created using `CreateFileW` syscall with following set of flags: `FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED`
#[derive(Debug)]
pub struct COMPort {
handle: HANDLE,
Expand Down

0 comments on commit ebe786e

Please sign in to comment.