pub struct PluginResourcePolicy {
pub max_memory_bytes: Option<u64>,
pub max_queue_depth: Option<u32>,
pub max_call_micros: Option<u64>,
}Expand description
Bounded resource declarations used by a future resolver policy.
Fields§
§max_memory_bytes: Option<u64>§max_queue_depth: Option<u32>§max_call_micros: Option<u64>Trait Implementations§
Source§impl Clone for PluginResourcePolicy
impl Clone for PluginResourcePolicy
Source§fn clone(&self) -> PluginResourcePolicy
fn clone(&self) -> PluginResourcePolicy
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 PluginResourcePolicy
Source§impl Debug for PluginResourcePolicy
impl Debug for PluginResourcePolicy
Source§impl Default for PluginResourcePolicy
impl Default for PluginResourcePolicy
Source§fn default() -> PluginResourcePolicy
fn default() -> PluginResourcePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginResourcePolicy
impl<'de> Deserialize<'de> for PluginResourcePolicy
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 PluginResourcePolicy
Source§impl PartialEq for PluginResourcePolicy
impl PartialEq for PluginResourcePolicy
Source§impl Serialize for PluginResourcePolicy
impl Serialize for PluginResourcePolicy
impl StructuralPartialEq for PluginResourcePolicy
Auto Trait Implementations§
impl Freeze for PluginResourcePolicy
impl RefUnwindSafe for PluginResourcePolicy
impl Send for PluginResourcePolicy
impl Sync for PluginResourcePolicy
impl Unpin for PluginResourcePolicy
impl UnsafeUnpin for PluginResourcePolicy
impl UnwindSafe for PluginResourcePolicy
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