pub struct GatewayClientTransportPump {
pub packets_received: usize,
pub bytes_received: usize,
pub reports: Vec<GatewayCommandPipelineReport>,
pub acks_sent: usize,
pub ack_bytes_sent: usize,
}Expand description
Result of pumping gateway-side client command packets.
Fields§
§packets_received: usizeClient packets consumed from transport.
bytes_received: usizeClient packet bytes consumed from transport.
reports: Vec<GatewayCommandPipelineReport>Gateway pipeline reports produced from accepted or rejected commands.
acks_sent: usizeCommand ACK frames submitted to client transport.
ack_bytes_sent: usizeCommand ACK bytes submitted to client transport.
Implementations§
Source§impl GatewayClientTransportPump
impl GatewayClientTransportPump
Sourcepub fn commands_processed(&self) -> usize
pub fn commands_processed(&self) -> usize
Returns processed command count.
Sourcepub fn commands_accepted(&self) -> usize
pub fn commands_accepted(&self) -> usize
Returns accepted command count.
Sourcepub fn commands_rejected(&self) -> usize
pub fn commands_rejected(&self) -> usize
Returns rejected command count.
Trait Implementations§
Source§impl Clone for GatewayClientTransportPump
impl Clone for GatewayClientTransportPump
Source§fn clone(&self) -> GatewayClientTransportPump
fn clone(&self) -> GatewayClientTransportPump
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 GatewayClientTransportPump
impl Debug for GatewayClientTransportPump
Source§impl Default for GatewayClientTransportPump
impl Default for GatewayClientTransportPump
Source§fn default() -> GatewayClientTransportPump
fn default() -> GatewayClientTransportPump
Returns the “default value” for a type. Read more
impl Eq for GatewayClientTransportPump
impl StructuralPartialEq for GatewayClientTransportPump
Auto Trait Implementations§
impl Freeze for GatewayClientTransportPump
impl RefUnwindSafe for GatewayClientTransportPump
impl Send for GatewayClientTransportPump
impl Sync for GatewayClientTransportPump
impl Unpin for GatewayClientTransportPump
impl UnsafeUnpin for GatewayClientTransportPump
impl UnwindSafe for GatewayClientTransportPump
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