[−][src]Struct polyfuse::DirEntry
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
Auto Trait Implementations
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
impl RefUnwindSafe for DirEntry
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,