[][src]Struct polyfuse::op::Open

pub struct Open<'a> { /* fields omitted */ }

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

impl<'_> Debug for Open<'_>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.