pub struct SandboxPolicyPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for SandboxPolicy.
Implementations§
Source§impl SandboxPolicyPatch
impl SandboxPolicyPatch
Sourcepub fn max_duration_secs(self, value: u64) -> Self
pub fn max_duration_secs(self, value: u64) -> Self
Set the max_duration_secs field in this patch.
Sourcepub fn idle_timeout_secs(self, value: u64) -> Self
pub fn idle_timeout_secs(self, value: u64) -> Self
Set the idle_timeout_secs field in this patch.
Sourcepub fn clear_ephemeral(self) -> Self
pub fn clear_ephemeral(self) -> Self
Remove ephemeral from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_max_duration_secs(self) -> Self
pub fn clear_max_duration_secs(self) -> Self
Remove max_duration_secs from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_idle_timeout_secs(self) -> Self
pub fn clear_idle_timeout_secs(self) -> Self
Remove idle_timeout_secs from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn apply_to(self, target: &mut SandboxPolicy)
pub fn apply_to(self, target: &mut SandboxPolicy)
Apply every present field to an existing value.
Sourcepub fn from_present_fields(value: SandboxPolicy) -> Self
pub fn from_present_fields(value: SandboxPolicy) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for SandboxPolicyPatch
impl Clone for SandboxPolicyPatch
Source§fn clone(&self) -> SandboxPolicyPatch
fn clone(&self) -> SandboxPolicyPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxPolicyPatch
impl Debug for SandboxPolicyPatch
Source§impl Default for SandboxPolicyPatch
impl Default for SandboxPolicyPatch
Source§fn default() -> SandboxPolicyPatch
fn default() -> SandboxPolicyPatch
Returns the “default value” for a type. Read more
Source§impl From<SandboxPolicy> for SandboxPolicyPatch
impl From<SandboxPolicy> for SandboxPolicyPatch
Source§fn from(value: SandboxPolicy) -> Self
fn from(value: SandboxPolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SandboxPolicyPatch
impl RefUnwindSafe for SandboxPolicyPatch
impl Send for SandboxPolicyPatch
impl Sync for SandboxPolicyPatch
impl Unpin for SandboxPolicyPatch
impl UnsafeUnpin for SandboxPolicyPatch
impl UnwindSafe for SandboxPolicyPatch
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