pub struct DecisionExecutionLimits { /* private fields */ }Expand description
Host-owned resource allowance attached to one isolated execution.
Executors may impose stricter policy limits. The allowance can only reduce resource use; it never expands an executor’s own security policy.
Implementations§
Source§impl DecisionExecutionLimits
impl DecisionExecutionLimits
Sourcepub const fn with_max_response_body_bytes(self, limit: u64) -> Self
pub const fn with_max_response_body_bytes(self, limit: u64) -> Self
Restricts the response body buffered by this execution.
Sourcepub const fn max_response_body_bytes(self) -> Option<u64>
pub const fn max_response_body_bytes(self) -> Option<u64>
Returns the optional host-owned response buffer allowance.
Trait Implementations§
Source§impl Clone for DecisionExecutionLimits
impl Clone for DecisionExecutionLimits
Source§fn clone(&self) -> DecisionExecutionLimits
fn clone(&self) -> DecisionExecutionLimits
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 moreimpl Copy for DecisionExecutionLimits
Source§impl Debug for DecisionExecutionLimits
impl Debug for DecisionExecutionLimits
Source§impl Default for DecisionExecutionLimits
impl Default for DecisionExecutionLimits
Source§fn default() -> DecisionExecutionLimits
fn default() -> DecisionExecutionLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecisionExecutionLimits
impl<'de> Deserialize<'de> for DecisionExecutionLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionExecutionLimits
Source§impl PartialEq for DecisionExecutionLimits
impl PartialEq for DecisionExecutionLimits
Source§impl Serialize for DecisionExecutionLimits
impl Serialize for DecisionExecutionLimits
impl StructuralPartialEq for DecisionExecutionLimits
Auto Trait Implementations§
impl Freeze for DecisionExecutionLimits
impl RefUnwindSafe for DecisionExecutionLimits
impl Send for DecisionExecutionLimits
impl Sync for DecisionExecutionLimits
impl Unpin for DecisionExecutionLimits
impl UnsafeUnpin for DecisionExecutionLimits
impl UnwindSafe for DecisionExecutionLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more