pub struct ModelQueuePolicy {
pub timeout_action: i32,
pub default_timeout_microseconds: u64,
pub allow_timeout_override: bool,
pub max_queue_size: u32,
}Expand description
@@ @@.. cpp:var:: message ModelQueuePolicy @@ @@ Queue policy for inference requests. @@
Fields§
§timeout_action: i32@@ @@ .. cpp:var:: TimeoutAction timeout_action @@ @@ The action applied to timed-out request. @@ The default action is REJECT. @@
default_timeout_microseconds: u64@@ @@ .. cpp:var:: uint64 default_timeout_microseconds @@ @@ The default timeout for every request, in microseconds. @@ The default value is 0 which indicates that no timeout is set. @@
allow_timeout_override: bool@@ @@ .. cpp:var:: bool allow_timeout_override @@ @@ Whether individual request can override the default timeout value. @@ When true, individual requests can set a timeout that is less than @@ the default timeout value but may not increase the timeout. @@ The default value is false. @@
max_queue_size: u32@@ @@ .. cpp:var:: uint32 max_queue_size @@ @@ The maximum queue size for holding requests. A request will be @@ rejected immediately if it can’t be enqueued because the queue is @@ full. The default value is 0 which indicates that no maximum @@ queue size is enforced. @@
Implementations§
Source§impl ModelQueuePolicy
impl ModelQueuePolicy
Sourcepub fn timeout_action(&self) -> TimeoutAction
pub fn timeout_action(&self) -> TimeoutAction
Returns the enum value of timeout_action, or the default if the field is set to an invalid enum value.
Sourcepub fn set_timeout_action(&mut self, value: TimeoutAction)
pub fn set_timeout_action(&mut self, value: TimeoutAction)
Sets timeout_action to the provided enum value.
Trait Implementations§
Source§impl Clone for ModelQueuePolicy
impl Clone for ModelQueuePolicy
Source§fn clone(&self) -> ModelQueuePolicy
fn clone(&self) -> ModelQueuePolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelQueuePolicy
impl Debug for ModelQueuePolicy
Source§impl Default for ModelQueuePolicy
impl Default for ModelQueuePolicy
Source§impl Message for ModelQueuePolicy
impl Message for ModelQueuePolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for ModelQueuePolicy
impl PartialEq for ModelQueuePolicy
impl StructuralPartialEq for ModelQueuePolicy
Auto Trait Implementations§
impl Freeze for ModelQueuePolicy
impl RefUnwindSafe for ModelQueuePolicy
impl Send for ModelQueuePolicy
impl Sync for ModelQueuePolicy
impl Unpin for ModelQueuePolicy
impl UnwindSafe for ModelQueuePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request