Struct compio_driver::op::OpenFile
source · pub struct OpenFile { /* private fields */ }Expand description
Open or create a file with flags and mode.
Implementations§
source§impl OpenFile
impl OpenFile
sourcepub fn new(
path: U16CString,
access_mode: u32,
share_mode: FILE_SHARE_MODE,
security_attributes: *const SECURITY_ATTRIBUTES,
creation_mode: FILE_CREATION_DISPOSITION,
flags_and_attributes: FILE_FLAGS_AND_ATTRIBUTES
) -> Self
pub fn new( path: U16CString, access_mode: u32, share_mode: FILE_SHARE_MODE, security_attributes: *const SECURITY_ATTRIBUTES, creation_mode: FILE_CREATION_DISPOSITION, flags_and_attributes: FILE_FLAGS_AND_ATTRIBUTES ) -> Self
Create OpenFile.
sourcepub fn last_os_error(&self) -> u32
pub fn last_os_error(&self) -> u32
The result of [GetLastError]. It may not be 0 even if the operation is
successful.
Trait Implementations§
source§impl OpCode for OpenFile
impl OpCode for OpenFile
source§fn is_overlapped(&self) -> bool
fn is_overlapped(&self) -> bool
Determines that the operation is really overlapped defined by Windows
API. If not, the driver will try to operate it in another thread.
Auto Trait Implementations§
impl Freeze for OpenFile
impl RefUnwindSafe for OpenFile
impl !Send for OpenFile
impl !Sync for OpenFile
impl Unpin for OpenFile
impl UnwindSafe for OpenFile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more