pub struct PermissionsBuilder { /* private fields */ }Implementations§
Source§impl PermissionsBuilder
impl PermissionsBuilder
pub fn new() -> Self
pub fn allow_network(self) -> Self
pub fn allow_network_hosts(self, hosts: Vec<String>) -> Self
pub fn deny_network(self) -> Self
pub fn allow_filesystem(self) -> Self
pub fn allow_filesystem_paths(self, paths: Vec<PathBuf>) -> Self
pub fn readonly_filesystem(self, paths: Vec<PathBuf>) -> Self
pub fn max_memory(self, bytes: usize) -> Self
pub fn max_cpu_time(self, duration: Duration) -> Self
pub fn build(self) -> Permissions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PermissionsBuilder
impl RefUnwindSafe for PermissionsBuilder
impl Send for PermissionsBuilder
impl Sync for PermissionsBuilder
impl Unpin for PermissionsBuilder
impl UnwindSafe for PermissionsBuilder
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