pub enum RpcServerMetricEvent {
ConnectionStarted {
connection_id: u64,
},
ConnectionEnded {
connection_id: u64,
success: bool,
},
HandshakeCompleted {
connection_id: u64,
},
HandshakeFailed {
connection_id: u64,
error_code: RuntimeErrorCode,
},
ListenerConnectionRejected {
error_code: RuntimeErrorCode,
},
RequestStarted {
connection_id: u64,
request_id: RequestId,
instance_id: InstanceId,
method_id: MethodId,
is_activation: bool,
},
RequestCompleted {
connection_id: u64,
request_id: RequestId,
instance_id: InstanceId,
method_id: MethodId,
is_activation: bool,
elapsed: Duration,
},
RequestFailed {
connection_id: u64,
request_id: RequestId,
instance_id: InstanceId,
method_id: MethodId,
is_activation: bool,
elapsed: Duration,
error_code: RuntimeErrorCode,
},
RequestSlow {
connection_id: u64,
request_id: RequestId,
instance_id: InstanceId,
method_id: MethodId,
is_activation: bool,
elapsed: Duration,
threshold: Duration,
},
ResponseSendFailed {
connection_id: u64,
request_id: RequestId,
},
}Variants§
ConnectionStarted
ConnectionEnded
HandshakeCompleted
HandshakeFailed
ListenerConnectionRejected
Fields
§
error_code: RuntimeErrorCodeRequestStarted
Fields
§
instance_id: InstanceIdRequestCompleted
Fields
§
instance_id: InstanceIdRequestFailed
RequestSlow
Fields
§
instance_id: InstanceIdResponseSendFailed
Trait Implementations§
Source§impl Clone for RpcServerMetricEvent
impl Clone for RpcServerMetricEvent
Source§fn clone(&self) -> RpcServerMetricEvent
fn clone(&self) -> RpcServerMetricEvent
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 RpcServerMetricEvent
impl Debug for RpcServerMetricEvent
Source§impl PartialEq for RpcServerMetricEvent
impl PartialEq for RpcServerMetricEvent
Source§fn eq(&self, other: &RpcServerMetricEvent) -> bool
fn eq(&self, other: &RpcServerMetricEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RpcServerMetricEvent
Auto Trait Implementations§
impl Freeze for RpcServerMetricEvent
impl RefUnwindSafe for RpcServerMetricEvent
impl Send for RpcServerMetricEvent
impl Sync for RpcServerMetricEvent
impl Unpin for RpcServerMetricEvent
impl UnsafeUnpin for RpcServerMetricEvent
impl UnwindSafe for RpcServerMetricEvent
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