pub struct SerializableChannelStats {
pub id: String,
pub label: String,
pub channel_type: ChannelType,
pub state: ChannelState,
pub sent_count: u64,
pub received_count: u64,
pub queued: u64,
pub type_name: String,
pub type_size: usize,
pub total_bytes: u64,
pub queued_bytes: u64,
}Expand description
Serializable version of channel statistics for JSON responses.
Fields§
§id: String§label: String§channel_type: ChannelType§state: ChannelState§sent_count: u64§received_count: u64§queued: u64§type_name: String§type_size: usize§total_bytes: u64§queued_bytes: u64Trait Implementations§
Source§impl Clone for SerializableChannelStats
impl Clone for SerializableChannelStats
Source§fn clone(&self) -> SerializableChannelStats
fn clone(&self) -> SerializableChannelStats
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 SerializableChannelStats
impl Debug for SerializableChannelStats
Source§impl<'de> Deserialize<'de> for SerializableChannelStats
impl<'de> Deserialize<'de> for SerializableChannelStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SerializableChannelStats
impl RefUnwindSafe for SerializableChannelStats
impl Send for SerializableChannelStats
impl Sync for SerializableChannelStats
impl Unpin for SerializableChannelStats
impl UnwindSafe for SerializableChannelStats
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