Skip to main content

ChannelDebugSnapshot

Struct ChannelDebugSnapshot 

Source
pub struct ChannelDebugSnapshot {
Show 39 fields pub connection_id: ConnectionId, pub channel_id: ChannelId, pub direction: ChannelDirection, pub debug: Option<ChannelDebugContext>, pub initial_credit: u32, pub available_send_credit: Option<u32>, pub inbound_queue_len: Option<usize>, pub inbound_queue_capacity: Option<usize>, pub outbound_runtime_queue_len: Option<usize>, pub outbound_runtime_queue_capacity: Option<usize>, pub send_waiters_count: Option<usize>, pub receiver_state: ChannelReceiverState, pub last_item_sent_at: Option<Instant>, pub last_item_received_at: Option<Instant>, pub last_item_consumed_at: Option<Instant>, pub last_credit_granted_at: Option<Instant>, pub last_credit_received_at: Option<Instant>, pub last_credit_granted_amount: Option<u32>, pub last_credit_received_amount: Option<u32>, pub pending_local_grant_credit: u32, pub total_credit_granted: u64, pub total_credit_received: u64, pub current_permit_count: Option<u32>, pub zero_credit_with_blocked_senders: bool, pub sent: u64, pub sends_started: u64, pub sends_completed: u64, pub sends_waited_for_credit: u64, pub try_send_full_credit: u64, pub try_send_full_runtime_queue: u64, pub closed: u64, pub reset: u64, pub dropped: u64, pub items_received: u64, pub items_consumed: u64, pub credit_granted: u64, pub credit_received: u64, pub close_reason: Option<ChannelCloseReason>, pub reset_reason: Option<ChannelResetReason>,
}

Fields§

§connection_id: ConnectionId§channel_id: ChannelId§direction: ChannelDirection§debug: Option<ChannelDebugContext>§initial_credit: u32§available_send_credit: Option<u32>§inbound_queue_len: Option<usize>§inbound_queue_capacity: Option<usize>§outbound_runtime_queue_len: Option<usize>§outbound_runtime_queue_capacity: Option<usize>§send_waiters_count: Option<usize>§receiver_state: ChannelReceiverState§last_item_sent_at: Option<Instant>§last_item_received_at: Option<Instant>§last_item_consumed_at: Option<Instant>§last_credit_granted_at: Option<Instant>§last_credit_received_at: Option<Instant>§last_credit_granted_amount: Option<u32>§last_credit_received_amount: Option<u32>§pending_local_grant_credit: u32§total_credit_granted: u64§total_credit_received: u64§current_permit_count: Option<u32>§zero_credit_with_blocked_senders: bool§sent: u64§sends_started: u64§sends_completed: u64§sends_waited_for_credit: u64§try_send_full_credit: u64§try_send_full_runtime_queue: u64§closed: u64§reset: u64§dropped: u64§items_received: u64§items_consumed: u64§credit_granted: u64§credit_received: u64§close_reason: Option<ChannelCloseReason>§reset_reason: Option<ChannelResetReason>

Trait Implementations§

Source§

impl Clone for ChannelDebugSnapshot

Source§

fn clone(&self) -> ChannelDebugSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChannelDebugSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ChannelLiveness for T
where T: MaybeSend + MaybeSync + 'static,

Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> MaybeSync for T
where T: Sync,