#[repr(C)]pub struct QueueStateChanged {
pub trader_id: TraderId,
pub channel: SystemChannel,
pub condition: QueueCondition,
pub state: QueueState,
pub queue_depth: usize,
pub mean_dispatch_ns: u64,
pub event_id: UUID4,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
}Expand description
Represents an event where a runner queue pressure condition has changed.
Fields§
§trader_id: TraderIdThe trader ID associated with the event.
channel: SystemChannelThe runner channel associated with the condition.
condition: QueueConditionThe queue pressure condition.
state: QueueStateThe condition state.
queue_depth: usizeThe queue depth at the state transition.
mean_dispatch_ns: u64The mean dispatch time per message at the state transition, in nanoseconds.
event_id: UUID4The event ID.
ts_event: UnixNanosUNIX timestamp (nanoseconds) when the event occurred.
ts_init: UnixNanosUNIX timestamp (nanoseconds) when the instance was initialized.
Implementations§
Source§impl QueueStateChanged
impl QueueStateChanged
Sourcepub const fn new(
trader_id: TraderId,
channel: SystemChannel,
condition: QueueCondition,
state: QueueState,
queue_depth: usize,
mean_dispatch_ns: u64,
event_id: UUID4,
ts_event: UnixNanos,
ts_init: UnixNanos,
) -> Self
pub const fn new( trader_id: TraderId, channel: SystemChannel, condition: QueueCondition, state: QueueState, queue_depth: usize, mean_dispatch_ns: u64, event_id: UUID4, ts_event: UnixNanos, ts_init: UnixNanos, ) -> Self
Creates a new QueueStateChanged instance.
pub fn as_any(&self) -> &dyn Any
Trait Implementations§
Source§impl Clone for QueueStateChanged
impl Clone for QueueStateChanged
Source§fn clone(&self) -> QueueStateChanged
fn clone(&self) -> QueueStateChanged
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueueStateChanged
impl Debug for QueueStateChanged
Source§impl Display for QueueStateChanged
impl Display for QueueStateChanged
impl Eq for QueueStateChanged
Source§impl PartialEq for QueueStateChanged
impl PartialEq for QueueStateChanged
impl StructuralPartialEq for QueueStateChanged
Auto Trait Implementations§
impl Freeze for QueueStateChanged
impl RefUnwindSafe for QueueStateChanged
impl Send for QueueStateChanged
impl Sync for QueueStateChanged
impl Unpin for QueueStateChanged
impl UnsafeUnpin for QueueStateChanged
impl UnwindSafe for QueueStateChanged
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.