[][src]Trait mruby_vfs::UnixFileSystem

pub trait UnixFileSystem {
    fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>;
fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>; }

Required methods

fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>

Returns the current mode bits of path.

Errors

  • path does not exist.
  • Current user has insufficient permissions.

fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>

Sets the mode bits of path.

Errors

  • path does not exist.
  • Current user has insufficient permissions.
Loading content...

Implementors

impl<Metadata: Clone> UnixFileSystem for FileSystem<Metadata>[src]

Loading content...