Skip to main content

SessionTelemetryTracker

Trait SessionTelemetryTracker 

Source
pub trait SessionTelemetryTracker {
    // Required methods
    fn frame_emitted(&self);
    fn frame_completed(&self);
    fn frame_discarded(&self);
    fn incomplete_frame(&self);
    fn incoming_message(&self, msg: SessionMessageDiscriminants);
    fn outgoing_message(&self, msg: SessionMessageDiscriminants);
    fn error(&self);
}
Expand description

Used to track various statistics of a SessionSocket.

Required Methods§

Source

fn frame_emitted(&self)

Records a frame that has been emitted from the Sequencer.

Source

fn frame_completed(&self)

Records a frame that has successfully reassembled by the Reassembler.

Source

fn frame_discarded(&self)

Records a frame that has been discarded due to timeout or other errors.

Source

fn incomplete_frame(&self)

Records an incomplete frame that could not be reassembled.

Source

fn incoming_message(&self, msg: SessionMessageDiscriminants)

Records an incoming Session message.

Source

fn outgoing_message(&self, msg: SessionMessageDiscriminants)

Records an outgoing Session message.

Source

fn error(&self)

Records an error that occurred during processing of a Session packet.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + SessionTelemetryTracker + ?Sized> SessionTelemetryTracker for &'a T

Source§

impl<T: SessionTelemetryTracker + ?Sized> SessionTelemetryTracker for Arc<T>

Implementors§