Trait rustjs::deno_fs::FsPermissions

source ·
pub trait FsPermissions {
    // Required methods
    fn check_read(&mut self, path: &Path, api_name: &str) -> Result<(), Error>;
    fn check_read_all(&mut self, api_name: &str) -> Result<(), Error>;
    fn check_read_blind(
        &mut self,
        p: &Path,
        display: &str,
        api_name: &str,
    ) -> Result<(), Error>;
    fn check_write(&mut self, path: &Path, api_name: &str) -> Result<(), Error>;
    fn check_write_partial(
        &mut self,
        path: &Path,
        api_name: &str,
    ) -> Result<(), Error>;
    fn check_write_all(&mut self, api_name: &str) -> Result<(), Error>;
    fn check_write_blind(
        &mut self,
        p: &Path,
        display: &str,
        api_name: &str,
    ) -> Result<(), Error>;

    // Provided method
    fn check(
        &mut self,
        open_options: &OpenOptions,
        path: &Path,
        api_name: &str,
    ) -> Result<(), Error> { ... }
}

Required Methods§

source

fn check_read(&mut self, path: &Path, api_name: &str) -> Result<(), Error>

source

fn check_read_all(&mut self, api_name: &str) -> Result<(), Error>

source

fn check_read_blind( &mut self, p: &Path, display: &str, api_name: &str, ) -> Result<(), Error>

source

fn check_write(&mut self, path: &Path, api_name: &str) -> Result<(), Error>

source

fn check_write_partial( &mut self, path: &Path, api_name: &str, ) -> Result<(), Error>

source

fn check_write_all(&mut self, api_name: &str) -> Result<(), Error>

source

fn check_write_blind( &mut self, p: &Path, display: &str, api_name: &str, ) -> Result<(), Error>

Provided Methods§

source

fn check( &mut self, open_options: &OpenOptions, path: &Path, api_name: &str, ) -> Result<(), Error>

Implementors§