pub enum DriverEvent {
ConnectionOpened {
connection_id: ConnectionId,
},
ConnectionClosed {
connection_id: ConnectionId,
reason: ConnectionCloseReason,
},
RequestStarted {
connection_id: ConnectionId,
request_id: RequestId,
method_id: MethodId,
},
RequestFinished {
connection_id: ConnectionId,
request_id: RequestId,
outcome: RpcOutcome,
elapsed: Duration,
},
OutboundQueueFull {
connection_id: ConnectionId,
},
OutboundQueueClosed {
connection_id: ConnectionId,
},
FrameRead {
connection_id: ConnectionId,
bytes: usize,
},
FrameWritten {
connection_id: ConnectionId,
bytes: usize,
},
DecodeError {
connection_id: ConnectionId,
kind: DecodeErrorKind,
},
EncodeError {
connection_id: ConnectionId,
kind: EncodeErrorKind,
},
ProtocolError {
connection_id: ConnectionId,
kind: ProtocolErrorKind,
},
}Variants§
ConnectionOpened
Fields
§
connection_id: ConnectionIdConnectionClosed
RequestStarted
RequestFinished
OutboundQueueFull
Fields
§
connection_id: ConnectionIdOutboundQueueClosed
Fields
§
connection_id: ConnectionIdFrameRead
FrameWritten
DecodeError
EncodeError
ProtocolError
Trait Implementations§
Source§impl Clone for DriverEvent
impl Clone for DriverEvent
Source§fn clone(&self) -> DriverEvent
fn clone(&self) -> DriverEvent
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 DriverEvent
impl Debug for DriverEvent
Source§impl PartialEq for DriverEvent
impl PartialEq for DriverEvent
Source§fn eq(&self, other: &DriverEvent) -> bool
fn eq(&self, other: &DriverEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DriverEvent
impl Eq for DriverEvent
impl StructuralPartialEq for DriverEvent
Auto Trait Implementations§
impl Freeze for DriverEvent
impl RefUnwindSafe for DriverEvent
impl Send for DriverEvent
impl Sync for DriverEvent
impl Unpin for DriverEvent
impl UnsafeUnpin for DriverEvent
impl UnwindSafe for DriverEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.