[−][src]Struct polyfuse::op::Open
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.
Methods
impl<'a> Open<'a>
[src]
pub fn ino(&self) -> u64
[src]
Return the inode number to be opened.
pub fn flags(&self) -> u32
[src]
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<'a> RefUnwindSafe for Open<'a>
impl<'a> Send for Open<'a>
impl<'a> Sync for Open<'a>
impl<'a> Unpin for Open<'a>
impl<'a> UnwindSafe for Open<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,