pub struct PluginExecutionPolicy {
pub default_timeout_ms: u64,
pub allow_no_timeout: bool,
pub allow_absolute_entrypoint: bool,
pub allow_path_lookup: bool,
}Expand description
Security policy controlling plugin execution privileges.
Fields§
§default_timeout_ms: u64§allow_no_timeout: bool§allow_absolute_entrypoint: bool§allow_path_lookup: boolImplementations§
Source§impl PluginExecutionPolicy
impl PluginExecutionPolicy
pub fn trusted_local() -> Self
pub fn with_default_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_allow_no_timeout(self, allow: bool) -> Self
pub fn with_allow_absolute_entrypoint(self, allow: bool) -> Self
pub fn with_allow_path_lookup(self, allow: bool) -> Self
Trait Implementations§
Source§impl Clone for PluginExecutionPolicy
impl Clone for PluginExecutionPolicy
Source§fn clone(&self) -> PluginExecutionPolicy
fn clone(&self) -> PluginExecutionPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginExecutionPolicy
impl Debug for PluginExecutionPolicy
Source§impl Default for PluginExecutionPolicy
impl Default for PluginExecutionPolicy
Source§impl PartialEq for PluginExecutionPolicy
impl PartialEq for PluginExecutionPolicy
impl Eq for PluginExecutionPolicy
impl StructuralPartialEq for PluginExecutionPolicy
Auto Trait Implementations§
impl Freeze for PluginExecutionPolicy
impl RefUnwindSafe for PluginExecutionPolicy
impl Send for PluginExecutionPolicy
impl Sync for PluginExecutionPolicy
impl Unpin for PluginExecutionPolicy
impl UnsafeUnpin for PluginExecutionPolicy
impl UnwindSafe for PluginExecutionPolicy
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