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§
Sourcefn frame_emitted(&self)
fn frame_emitted(&self)
Records a frame that has been emitted from the Sequencer.
Sourcefn frame_completed(&self)
fn frame_completed(&self)
Records a frame that has successfully reassembled by the Reassembler.
Sourcefn frame_discarded(&self)
fn frame_discarded(&self)
Records a frame that has been discarded due to timeout or other errors.
Sourcefn incomplete_frame(&self)
fn incomplete_frame(&self)
Records an incomplete frame that could not be reassembled.
Sourcefn incoming_message(&self, msg: SessionMessageDiscriminants)
fn incoming_message(&self, msg: SessionMessageDiscriminants)
Records an incoming Session message.
Sourcefn outgoing_message(&self, msg: SessionMessageDiscriminants)
fn outgoing_message(&self, msg: SessionMessageDiscriminants)
Records an outgoing Session message.