pub struct CatThreadPool<'a, 'b> { /* private fields */ }
Expand description
Builder for the Cat Thread Pool API
Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.
Implementations§
Source§impl<'a, 'b> CatThreadPool<'a, 'b>
impl<'a, 'b> CatThreadPool<'a, 'b>
Sourcepub fn new(transport: &'a Transport, parts: CatThreadPoolParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: CatThreadPoolParts<'b>) -> Self
Creates a new instance of CatThreadPool with the specified API parts
Sourcepub fn cluster_manager_timeout(self, cluster_manager_timeout: &'b str) -> Self
pub fn cluster_manager_timeout(self, cluster_manager_timeout: &'b str) -> Self
Explicit operation timeout for connection to cluster-manager node
Sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
Sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
Sourcepub fn format(self, format: &'b str) -> Self
pub fn format(self, format: &'b str) -> Self
a short version of the Accept header, e.g. json, yaml
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn local(self, local: bool) -> Self
pub fn local(self, local: bool) -> Self
Return local information, do not retrieve the state from cluster-manager node (default: false)
Sourcepub fn master_timeout(self, master_timeout: &'b str) -> Self
👎Deprecated: To promote inclusive language, use ‘cluster_manager_timeout’ instead.
pub fn master_timeout(self, master_timeout: &'b str) -> Self
Explicit operation timeout for connection to cluster-manager node
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
Sourcepub fn s(self, s: &'b [&'b str]) -> Self
pub fn s(self, s: &'b [&'b str]) -> Self
Comma-separated list of column names or column aliases to sort by
Sourcepub fn size(self, size: Size) -> Self
👎Deprecated: Setting this value has no effect and will be removed from the specification.
pub fn size(self, size: Size) -> Self
The multiplier in which to display values
Trait Implementations§
Source§impl<'a, 'b> Clone for CatThreadPool<'a, 'b>
impl<'a, 'b> Clone for CatThreadPool<'a, 'b>
Source§fn clone(&self) -> CatThreadPool<'a, 'b>
fn clone(&self) -> CatThreadPool<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a, 'b> Freeze for CatThreadPool<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for CatThreadPool<'a, 'b>
impl<'a, 'b> Send for CatThreadPool<'a, 'b>
impl<'a, 'b> Sync for CatThreadPool<'a, 'b>
impl<'a, 'b> Unpin for CatThreadPool<'a, 'b>
impl<'a, 'b> !UnwindSafe for CatThreadPool<'a, 'b>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more