pub struct OpenOptions {
read: bool,
write: bool,
append: bool,
truncate: bool,
create: bool,
create_new: bool,
custom_flags: u32,
access_mode: Option<c_ulong>,
attributes: c_ulong,
share_mode: c_ulong,
security_qos_flags: c_ulong,
security_attributes: *mut SECURITY_ATTRIBUTES,
}
Fields§
§read: bool
§write: bool
§append: bool
§truncate: bool
§create: bool
§create_new: bool
§custom_flags: u32
§access_mode: Option<c_ulong>
§attributes: c_ulong
§security_qos_flags: c_ulong
§security_attributes: *mut SECURITY_ATTRIBUTES
Implementations§
source§impl OpenOptions
impl OpenOptions
pub fn new() -> OpenOptions
pub fn read(&mut self, read: bool)
pub fn write(&mut self, write: bool)
pub fn append(&mut self, append: bool)
pub fn truncate(&mut self, truncate: bool)
pub fn create(&mut self, create: bool)
pub fn create_new(&mut self, create_new: bool)
pub fn custom_flags(&mut self, flags: u32)
pub fn access_mode(&mut self, access_mode: u32)
pub fn attributes(&mut self, attrs: u32)
pub fn security_qos_flags(&mut self, flags: u32)
pub fn security_attributes(&mut self, attrs: *mut SECURITY_ATTRIBUTES)
fn get_access_mode(&self) -> Result<c_ulong>
fn get_creation_mode(&self) -> Result<c_ulong>
fn get_flags_and_attributes(&self) -> c_ulong
Trait Implementations§
source§impl Clone for OpenOptions
impl Clone for OpenOptions
source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
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 OpenOptions
impl Debug for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
Auto Trait Implementations§
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