pub enum LatencyClass {
Interactive,
Background,
}Expand description
Declared responsiveness expectation for an app’s lease engine decisions
(app lease engine design §8, Task 1). None on GovernorManifest means
the app has not declared a preference — the lease engine (Task 5) then
falls back to its own default rather than treating an unset field as
either variant.
Variants§
Interactive
The app serves latency-sensitive, user-facing requests — the lease engine should prefer to keep it warm.
Background
The app only does deferred/background work — the lease engine may treat it as a lower priority to keep resident.
Implementations§
Trait Implementations§
Source§impl Clone for LatencyClass
impl Clone for LatencyClass
Source§fn clone(&self) -> LatencyClass
fn clone(&self) -> LatencyClass
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 LatencyClass
Source§impl Debug for LatencyClass
impl Debug for LatencyClass
Source§impl<'de> Deserialize<'de> for LatencyClass
impl<'de> Deserialize<'de> for LatencyClass
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 Display for LatencyClass
impl Display for LatencyClass
impl Eq for LatencyClass
Source§impl PartialEq for LatencyClass
impl PartialEq for LatencyClass
Source§impl Serialize for LatencyClass
impl Serialize for LatencyClass
impl StructuralPartialEq for LatencyClass
Auto Trait Implementations§
impl Freeze for LatencyClass
impl RefUnwindSafe for LatencyClass
impl Send for LatencyClass
impl Sync for LatencyClass
impl Unpin for LatencyClass
impl UnsafeUnpin for LatencyClass
impl UnwindSafe for LatencyClass
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