Trait FetchPermissions

Source
pub trait FetchPermissions {
    // Required methods
    fn check_net_url(
        &mut self,
        url: &Url,
        api_name: &str,
    ) -> Result<(), PermissionCheckError>;
    fn check_read<'a>(
        &mut self,
        path: Cow<'a, Path>,
        api_name: &str,
        get_path: &'a dyn GetPath,
    ) -> Result<CheckedPath<'a>, FsError>;
    fn check_write<'a>(
        &mut self,
        path: Cow<'a, Path>,
        api_name: &str,
        get_path: &'a dyn GetPath,
    ) -> Result<CheckedPath<'a>, FsError>;
    fn check_net_vsock(
        &mut self,
        cid: u32,
        port: u32,
        api_name: &str,
    ) -> Result<(), PermissionCheckError>;
}

Required Methods§

Source

fn check_net_url( &mut self, url: &Url, api_name: &str, ) -> Result<(), PermissionCheckError>

Source

fn check_read<'a>( &mut self, path: Cow<'a, Path>, api_name: &str, get_path: &'a dyn GetPath, ) -> Result<CheckedPath<'a>, FsError>

Source

fn check_write<'a>( &mut self, path: Cow<'a, Path>, api_name: &str, get_path: &'a dyn GetPath, ) -> Result<CheckedPath<'a>, FsError>

Source

fn check_net_vsock( &mut self, cid: u32, port: u32, api_name: &str, ) -> Result<(), PermissionCheckError>

Implementations on Foreign Types§

Source§

impl FetchPermissions for PermissionsContainer

Source§

fn check_net_url( &mut self, url: &Url, api_name: &str, ) -> Result<(), PermissionCheckError>

Source§

fn check_read<'a>( &mut self, path: Cow<'a, Path>, api_name: &str, get_path: &'a dyn GetPath, ) -> Result<CheckedPath<'a>, FsError>

Source§

fn check_write<'a>( &mut self, path: Cow<'a, Path>, api_name: &str, get_path: &'a dyn GetPath, ) -> Result<CheckedPath<'a>, FsError>

Source§

fn check_net_vsock( &mut self, cid: u32, port: u32, api_name: &str, ) -> Result<(), PermissionCheckError>

Implementors§