[−][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
impl AsRef<[u8]> for DirEntry
[src]
impl Debug for DirEntry
[src]
impl Reply for DirEntry
[src]
fn collect_bytes<'a, T: ?Sized>(&'a self, collector: &mut T) where
T: Collector<'a>,
[src]
T: Collector<'a>,
Auto Trait Implementations
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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>,