pub struct Policy {
pub grants: Grants,
pub events: EventPolicy,
pub root: Option<PathBuf>,
}Expand description
What an extension runs with: its grants, its pi.events policy, and the
folder it loads modules from without file access. It has no default, so
every file says which one it gets.
Fields§
§grants: GrantsWhat it may reach.
events: EventPolicyThe channels it may send to, and hear from, extensions whose grants differ.
root: Option<PathBuf>The folder that holds its package and the package’s own dependencies.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more