pub enum LatencyClass {
Realtime,
Interactive,
Background,
Batch,
}Expand description
Latency class requirements.
Variants§
Implementations§
Source§impl LatencyClass
impl LatencyClass
pub fn max_latency_ms(self) -> u32
pub fn satisfied_by(self, provider_latency_ms: u32) -> bool
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 moreSource§impl Debug for LatencyClass
impl Debug for LatencyClass
Source§impl Default for LatencyClass
impl Default for LatencyClass
Source§fn default() -> LatencyClass
fn default() -> LatencyClass
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LatencyClass
impl<'de> Deserialize<'de> for LatencyClass
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LatencyClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LatencyClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LatencyClass
impl Hash for LatencyClass
Source§impl Ord for LatencyClass
impl Ord for LatencyClass
Source§fn cmp(&self, other: &LatencyClass) -> Ordering
fn cmp(&self, other: &LatencyClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LatencyClass
impl PartialEq for LatencyClass
Source§fn eq(&self, other: &LatencyClass) -> bool
fn eq(&self, other: &LatencyClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LatencyClass
impl PartialOrd for LatencyClass
Source§impl Serialize for LatencyClass
impl Serialize for LatencyClass
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for LatencyClass
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.