#[repr(u64)]pub enum NSDataWritingOptions {
Atomic = 1,
WithoutOverwriting = 2,
FileProtectionNone = 268_435_456,
FileProtectionComplete = 536_870_912,
FileProtectionMask = 4_026_531_840,
FileProtectionCompleteUnlessOpen = 805_306_368,
FileProtectionCompleteUntilFirstUserAuthentication = 1_073_741_824,
}
Expand description
Options for methods used to write data objects.
Variants§
Atomic = 1
An option to write data to an auxiliary file first and then replace the original file with the auxiliary file when the write completes.
WithoutOverwriting = 2
An option that attempts to write data to a file and fails with an error if the destination file already exists.
FileProtectionNone = 268_435_456
An option to not encrypt the file when writing it out.
FileProtectionComplete = 536_870_912
An option to make the file accessible only while the device is unlocked.
FileProtectionMask = 4_026_531_840
An option to allow the file to be accessible after a user first unlocks the device.
FileProtectionCompleteUnlessOpen = 805_306_368
An option to allow the file to be accessible while the device is unlocked or the file is already open.
FileProtectionCompleteUntilFirstUserAuthentication = 1_073_741_824
An option the system uses when determining the file protection options that the system assigns to the data.
Trait Implementations§
Source§impl Clone for NSDataWritingOptions
impl Clone for NSDataWritingOptions
Source§fn clone(&self) -> NSDataWritingOptions
fn clone(&self) -> NSDataWritingOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NSDataWritingOptions
impl Debug for NSDataWritingOptions
impl Copy for NSDataWritingOptions
Auto Trait Implementations§
impl Freeze for NSDataWritingOptions
impl RefUnwindSafe for NSDataWritingOptions
impl Send for NSDataWritingOptions
impl Sync for NSDataWritingOptions
impl Unpin for NSDataWritingOptions
impl UnwindSafe for NSDataWritingOptions
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