pub struct Open<'op> { /* private fields */ }Expand description
Open a file.
If the file is successfully opened, the filesystem must send the identifier
of the opened file handle to the kernel using ReplyOpen. This parameter is
set to a series of requests, such as read and write, until releasing
the file, and is able to be utilized as a “pointer” to the state during
handling the opened file.
See also the documentation of ReplyOpen for tuning the reply parameters.
Implementations§
Source§impl<'op> Open<'op>
impl<'op> Open<'op>
Sourcepub fn flags(&self) -> u32
pub fn flags(&self) -> u32
Return the open flags.
The creating flags (O_CREAT, O_EXCL and O_NOCTTY) are removed and
these flags are handled by the kernel.
If the mount option contains -o default_permissions, the access mode flags
(O_RDONLY, O_WRONLY and O_RDWR) might be handled by the kernel and in that case,
these flags are omitted before issuing the request. Otherwise, the filesystem should
handle these flags and return an EACCES error when provided access mode is
invalid.
Trait Implementations§
Auto Trait Implementations§
impl<'op> Freeze for Open<'op>
impl<'op> RefUnwindSafe for Open<'op>
impl<'op> Send for Open<'op>
impl<'op> Sync for Open<'op>
impl<'op> Unpin for Open<'op>
impl<'op> UnwindSafe for Open<'op>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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