pub struct CommandConsumerStatsResponse {Show 15 fields
pub request_id: u64,
pub error_code: Option<i32>,
pub error_message: Option<String>,
pub msg_rate_out: Option<f64>,
pub msg_throughput_out: Option<f64>,
pub msg_rate_redeliver: Option<f64>,
pub consumer_name: Option<String>,
pub available_permits: Option<u64>,
pub unacked_messages: Option<u64>,
pub blocked_consumer_on_unacked_msgs: Option<bool>,
pub address: Option<String>,
pub connected_since: Option<String>,
pub type: Option<String>,
pub msg_rate_expired: Option<f64>,
pub msg_backlog: Option<u64>,
}Fields§
§request_id: u64§error_code: Option<i32>§error_message: Option<String>§msg_rate_out: Option<f64>§msg_throughput_out: Option<f64>§msg_rate_redeliver: Option<f64>§consumer_name: Option<String>§available_permits: Option<u64>§unacked_messages: Option<u64>§blocked_consumer_on_unacked_msgs: Option<bool>§address: Option<String>§connected_since: Option<String>§type: Option<String>§msg_rate_expired: Option<f64>§msg_backlog: Option<u64>Implementations§
Source§impl CommandConsumerStatsResponse
impl CommandConsumerStatsResponse
Sourcepub fn error_code(&self) -> ServerError
pub fn error_code(&self) -> ServerError
Returns the enum value of error_code, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_error_code(&mut self, value: ServerError)
pub fn set_error_code(&mut self, value: ServerError)
Sets error_code to the provided enum value.
Sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
Returns the value of error_message, or the default value if error_message is unset.
Sourcepub fn msg_rate_out(&self) -> f64
pub fn msg_rate_out(&self) -> f64
Returns the value of msg_rate_out, or the default value if msg_rate_out is unset.
Sourcepub fn msg_throughput_out(&self) -> f64
pub fn msg_throughput_out(&self) -> f64
Returns the value of msg_throughput_out, or the default value if msg_throughput_out is unset.
Sourcepub fn msg_rate_redeliver(&self) -> f64
pub fn msg_rate_redeliver(&self) -> f64
Returns the value of msg_rate_redeliver, or the default value if msg_rate_redeliver is unset.
Sourcepub fn consumer_name(&self) -> &str
pub fn consumer_name(&self) -> &str
Returns the value of consumer_name, or the default value if consumer_name is unset.
Sourcepub fn available_permits(&self) -> u64
pub fn available_permits(&self) -> u64
Returns the value of available_permits, or the default value if available_permits is unset.
Sourcepub fn unacked_messages(&self) -> u64
pub fn unacked_messages(&self) -> u64
Returns the value of unacked_messages, or the default value if unacked_messages is unset.
Sourcepub fn blocked_consumer_on_unacked_msgs(&self) -> bool
pub fn blocked_consumer_on_unacked_msgs(&self) -> bool
Returns the value of blocked_consumer_on_unacked_msgs, or the default value if blocked_consumer_on_unacked_msgs is unset.
Sourcepub fn address(&self) -> &str
pub fn address(&self) -> &str
Returns the value of address, or the default value if address is unset.
Sourcepub fn connected_since(&self) -> &str
pub fn connected_since(&self) -> &str
Returns the value of connected_since, or the default value if connected_since is unset.
Sourcepub fn msg_rate_expired(&self) -> f64
pub fn msg_rate_expired(&self) -> f64
Returns the value of msg_rate_expired, or the default value if msg_rate_expired is unset.
Sourcepub fn msg_backlog(&self) -> u64
pub fn msg_backlog(&self) -> u64
Returns the value of msg_backlog, or the default value if msg_backlog is unset.
Trait Implementations§
Source§impl Clone for CommandConsumerStatsResponse
impl Clone for CommandConsumerStatsResponse
Source§fn clone(&self) -> CommandConsumerStatsResponse
fn clone(&self) -> CommandConsumerStatsResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandConsumerStatsResponse
impl Debug for CommandConsumerStatsResponse
Source§impl Message for CommandConsumerStatsResponse
impl Message for CommandConsumerStatsResponse
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.impl StructuralPartialEq for CommandConsumerStatsResponse
Auto Trait Implementations§
impl Freeze for CommandConsumerStatsResponse
impl RefUnwindSafe for CommandConsumerStatsResponse
impl Send for CommandConsumerStatsResponse
impl Sync for CommandConsumerStatsResponse
impl Unpin for CommandConsumerStatsResponse
impl UnsafeUnpin for CommandConsumerStatsResponse
impl UnwindSafe for CommandConsumerStatsResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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