Struct qt_core::q_file_device::FileHandleFlag
source · pub struct FileHandleFlag(/* private fields */);
Expand description
This enum is used when opening a file to specify additional options which only apply to files and not to a generic QIODevice.
C++ enum: QFileDevice::FileHandleFlag
.
Implementations§
source§impl FileHandleFlag
impl FileHandleFlag
sourcepub const AutoCloseHandle: FileHandleFlag = _
pub const AutoCloseHandle: FileHandleFlag = _
The file handle passed into open() should be closed by close(), the default behavior is that close just flushes the file and the application is responsible for closing the file handle. When opening a file by name, this flag is ignored as Qt always owns the file handle and must close it. (C++ enum variant: AutoCloseHandle = 1
)
sourcepub const DontCloseHandle: FileHandleFlag = _
pub const DontCloseHandle: FileHandleFlag = _
If not explicitly closed, the underlying file handle is left open when the QFile object is destroyed. (C++ enum variant: DontCloseHandle = 0
)
Trait Implementations§
source§impl<T: Into<QFlags<FileHandleFlag>>> BitOr<T> for FileHandleFlag
impl<T: Into<QFlags<FileHandleFlag>>> BitOr<T> for FileHandleFlag
§type Output = QFlags<FileHandleFlag>
type Output = QFlags<FileHandleFlag>
The resulting type after applying the
|
operator.source§impl Clone for FileHandleFlag
impl Clone for FileHandleFlag
source§fn clone(&self) -> FileHandleFlag
fn clone(&self) -> FileHandleFlag
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileHandleFlag
impl Debug for FileHandleFlag
source§impl From<FileHandleFlag> for QFlags<FileHandleFlag>
impl From<FileHandleFlag> for QFlags<FileHandleFlag>
source§fn from(value: FileHandleFlag) -> Self
fn from(value: FileHandleFlag) -> Self
Converts to this type from the input type.
source§impl From<FileHandleFlag> for c_int
impl From<FileHandleFlag> for c_int
source§fn from(value: FileHandleFlag) -> Self
fn from(value: FileHandleFlag) -> Self
Converts to this type from the input type.
source§impl From<i32> for FileHandleFlag
impl From<i32> for FileHandleFlag
source§impl PartialEq for FileHandleFlag
impl PartialEq for FileHandleFlag
source§fn eq(&self, other: &FileHandleFlag) -> bool
fn eq(&self, other: &FileHandleFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileHandleFlag
impl Eq for FileHandleFlag
impl StructuralEq for FileHandleFlag
impl StructuralPartialEq for FileHandleFlag
Auto Trait Implementations§
impl RefUnwindSafe for FileHandleFlag
impl Send for FileHandleFlag
impl Sync for FileHandleFlag
impl Unpin for FileHandleFlag
impl UnwindSafe for FileHandleFlag
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