pub struct FileOptions {
pub rights: Operations,
pub is_append: bool,
pub is_linkable: bool,
}Expand description
FileOptions include options that are relevant after the file has been opened. Flags like
TRUNCATE, which only applies during open time, are not included.
Fields§
§rights: Operations§is_append: bool§is_linkable: boolImplementations§
Source§impl FileOptions
impl FileOptions
Sourcepub fn to_stream_options(&self) -> StreamOptions
pub fn to_stream_options(&self) -> StreamOptions
Converts to StreamOptions.
Trait Implementations§
Source§impl Clone for FileOptions
impl Clone for FileOptions
Source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
Returns a duplicate 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 FileOptions
impl Debug for FileOptions
Source§impl Default for FileOptions
impl Default for FileOptions
Source§fn default() -> FileOptions
fn default() -> FileOptions
Returns the “default value” for a type. Read more
Source§impl From<&FileOptions> for Flags
impl From<&FileOptions> for Flags
Source§fn from(options: &FileOptions) -> Self
fn from(options: &FileOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileOptions
impl PartialEq for FileOptions
impl Copy for FileOptions
impl Eq for FileOptions
impl StructuralPartialEq for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more