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
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
impl Copy for FileHandleFlag
impl Eq for FileHandleFlag
impl StructuralPartialEq for FileHandleFlag
Auto Trait Implementations§
impl Freeze for FileHandleFlag
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