Struct mfio_rt::OpenOptions
source · #[repr(C)]pub struct OpenOptions {
pub read: bool,
pub write: bool,
pub create: bool,
pub create_new: bool,
pub truncate: bool,
}
Expand description
File open options.
This type is equivalent to OpenOptions
found in the standard library,
but omits append
mode.
Fields§
§read: bool
§write: bool
§create: bool
§create_new: bool
§truncate: bool
Implementations§
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
source§impl<'de> Deserialize<'de> for OpenOptions
impl<'de> Deserialize<'de> for OpenOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for OpenOptions
impl Ord for OpenOptions
source§fn cmp(&self, other: &OpenOptions) -> Ordering
fn cmp(&self, other: &OpenOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OpenOptions
impl PartialEq for OpenOptions
source§fn eq(&self, other: &OpenOptions) -> bool
fn eq(&self, other: &OpenOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OpenOptions
impl PartialOrd for OpenOptions
source§fn partial_cmp(&self, other: &OpenOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &OpenOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for OpenOptions
impl Serialize for OpenOptions
impl Copy for OpenOptions
impl Eq for OpenOptions
impl StructuralEq for OpenOptions
impl StructuralPartialEq for OpenOptions
Auto Trait Implementations§
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
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