Trait deno_net::NetPermissions

source ·
pub trait NetPermissions {
    // Required methods
    fn check_net<T: AsRef<str>>(
        &mut self,
        _host: &(T, Option<u16>),
        _api_name: &str
    ) -> Result<(), AnyError>;
    fn check_read(&mut self, _p: &Path, _api_name: &str) -> Result<(), AnyError>;
    fn check_write(
        &mut self,
        _p: &Path,
        _api_name: &str
    ) -> Result<(), AnyError>;
}

Required Methods§

source

fn check_net<T: AsRef<str>>( &mut self, _host: &(T, Option<u16>), _api_name: &str ) -> Result<(), AnyError>

source

fn check_read(&mut self, _p: &Path, _api_name: &str) -> Result<(), AnyError>

source

fn check_write(&mut self, _p: &Path, _api_name: &str) -> Result<(), AnyError>

Object Safety§

This trait is not object safe.

Implementors§