[][src]Struct polyfuse::DirEntry

pub struct DirEntry { /* fields omitted */ }

A directory entry replied to the kernel.

Methods

impl DirEntry[src]

pub fn new(name: impl AsRef<OsStr>, ino: u64, off: u64) -> Self[src]

Create a new DirEntry.

pub fn dir(name: impl AsRef<OsStr>, ino: u64, off: u64) -> Self[src]

Create a DirEntry for a directory.

pub fn file(name: impl AsRef<OsStr>, ino: u64, off: u64) -> Self[src]

Create a DirEntry for a regular file.

pub fn nodeid(&self) -> u64[src]

Return the inode number of this entry.

pub fn set_nodeid(&mut self, ino: u64)[src]

Set the inode number of this entry.

pub fn offset(&self) -> u64[src]

Return the offset value of this entry.

pub fn set_offset(&mut self, off: u64)[src]

Set the offset value of this entry.

pub fn typ(&self) -> u32[src]

Return the type of this entry.

pub fn set_typ(&mut self, typ: u32)[src]

Set the type of this entry.

pub fn name(&self) -> &OsStr[src]

Returns the name of this entry.

pub fn set_name(&mut self, name: impl AsRef<OsStr>)[src]

Set the name of this entry.

Trait Implementations

impl AsRef<[u8]> for DirEntry[src]

impl Debug for DirEntry[src]

impl Reply for DirEntry[src]

Auto Trait Implementations

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.