pub struct SerializablePerformanceBudget {
pub max_latency_ms: u64,
pub max_memory_mb: usize,
pub priority: SerializableExecutionPriority,
}Expand description
Serializable version of PerformanceBudget
Fields§
§max_latency_ms: u64§max_memory_mb: usize§priority: SerializableExecutionPriorityTrait Implementations§
Source§impl Clone for SerializablePerformanceBudget
impl Clone for SerializablePerformanceBudget
Source§fn clone(&self) -> SerializablePerformanceBudget
fn clone(&self) -> SerializablePerformanceBudget
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<'de> Deserialize<'de> for SerializablePerformanceBudget
impl<'de> Deserialize<'de> for SerializablePerformanceBudget
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
Source§impl From<PerformanceBudget> for SerializablePerformanceBudget
impl From<PerformanceBudget> for SerializablePerformanceBudget
Source§fn from(budget: PerformanceBudget) -> Self
fn from(budget: PerformanceBudget) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializablePerformanceBudget
impl RefUnwindSafe for SerializablePerformanceBudget
impl Send for SerializablePerformanceBudget
impl Sync for SerializablePerformanceBudget
impl Unpin for SerializablePerformanceBudget
impl UnsafeUnpin for SerializablePerformanceBudget
impl UnwindSafe for SerializablePerformanceBudget
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