#[repr(i32)]pub enum ModelPriority {
PriorityDefault = 0,
PriorityMax = 1,
PriorityMin = 2,
}
Expand description
@@ @@ .. cpp:enum:: ModelPriority @@ @@ Model priorities. A model will be given scheduling and execution @@ preference over models at lower priorities. Current model @@ priorities only work for TensorRT models. @@
Variants§
PriorityDefault = 0
@@ .. cpp:enumerator:: ModelPriority::PRIORITY_DEFAULT = 0 @@ @@ The default model priority. @@
PriorityMax = 1
@@ .. cpp:enumerator:: ModelPriority::PRIORITY_MAX = 1 @@ @@ The maximum model priority. @@
PriorityMin = 2
@@ .. cpp:enumerator:: ModelPriority::PRIORITY_MIN = 2 @@ @@ The minimum model priority. @@
Implementations§
Trait Implementations§
Source§impl Clone for ModelPriority
impl Clone for ModelPriority
Source§fn clone(&self) -> ModelPriority
fn clone(&self) -> ModelPriority
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 Debug for ModelPriority
impl Debug for ModelPriority
Source§impl Default for ModelPriority
impl Default for ModelPriority
Source§fn default() -> ModelPriority
fn default() -> ModelPriority
Returns the “default value” for a type. Read more
Source§impl From<ModelPriority> for i32
impl From<ModelPriority> for i32
Source§fn from(value: ModelPriority) -> i32
fn from(value: ModelPriority) -> i32
Converts to this type from the input type.
Source§impl Hash for ModelPriority
impl Hash for ModelPriority
Source§impl Ord for ModelPriority
impl Ord for ModelPriority
Source§fn cmp(&self, other: &ModelPriority) -> Ordering
fn cmp(&self, other: &ModelPriority) -> Ordering
1.21.0 · 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 ModelPriority
impl PartialEq for ModelPriority
Source§impl PartialOrd for ModelPriority
impl PartialOrd for ModelPriority
impl Copy for ModelPriority
impl Eq for ModelPriority
impl StructuralPartialEq for ModelPriority
Auto Trait Implementations§
impl Freeze for ModelPriority
impl RefUnwindSafe for ModelPriority
impl Send for ModelPriority
impl Sync for ModelPriority
impl Unpin for ModelPriority
impl UnwindSafe for ModelPriority
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request