pub struct H3AuditStats { /* private fields */ }
Expand description
Stream-level HTTP/3 audit statistics recorded by H3Driver.
Implementations§
Source§impl H3AuditStats
impl H3AuditStats
pub fn new(stream_id: u64) -> Self
Sourcepub fn downstream_bytes_sent(&self) -> u64
pub fn downstream_bytes_sent(&self) -> u64
The number of bytes sent over the stream.
Sourcepub fn downstream_bytes_recvd(&self) -> u64
pub fn downstream_bytes_recvd(&self) -> u64
The number of bytes received over the stream.
Sourcepub fn recvd_stop_sending_error_code(&self) -> i64
pub fn recvd_stop_sending_error_code(&self) -> i64
A STOP_SENDING error code received from the peer.
-1 indicates that this error code was not received yet.
Sourcepub fn recvd_reset_stream_error_code(&self) -> i64
pub fn recvd_reset_stream_error_code(&self) -> i64
A RESET_STREAM error code received from the peer.
-1 indicates that this error code was not received yet.
Sourcepub fn sent_stop_sending_error_code(&self) -> i64
pub fn sent_stop_sending_error_code(&self) -> i64
A STOP_SENDING error code sent to the peer.
-1 indicates that this error code was not received yet.
Sourcepub fn sent_reset_stream_error_code(&self) -> i64
pub fn sent_reset_stream_error_code(&self) -> i64
A RESET_STREAM error code sent to the peer.
-1 indicates that this error code was not received yet.
Sourcepub fn recvd_stream_fin(&self) -> StreamClosureKind
pub fn recvd_stream_fin(&self) -> StreamClosureKind
Stream FIN received from the peer.
Sourcepub fn sent_stream_fin(&self) -> StreamClosureKind
pub fn sent_stream_fin(&self) -> StreamClosureKind
Stream FIN sent to the peer.
pub fn add_downstream_bytes_sent(&self, bytes_sent: u64)
pub fn add_downstream_bytes_recvd(&self, bytes_recvd: u64)
pub fn set_recvd_stop_sending_error_code( &self, recvd_stop_sending_error_code: i64, )
pub fn set_recvd_reset_stream_error_code( &self, recvd_reset_stream_error_code: i64, )
pub fn set_sent_stop_sending_error_code( &self, sent_stop_sending_error_code: i64, )
pub fn set_sent_reset_stream_error_code( &self, sent_reset_stream_error_code: i64, )
pub fn set_recvd_stream_fin(&self, recvd_stream_fin: StreamClosureKind)
pub fn set_sent_stream_fin(&self, sent_stream_fin: StreamClosureKind)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for H3AuditStats
impl RefUnwindSafe for H3AuditStats
impl Send for H3AuditStats
impl Sync for H3AuditStats
impl Unpin for H3AuditStats
impl UnwindSafe for H3AuditStats
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more