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>;
}