Enum kitsune_p2p_types::tx2::tx2_pool::EpEvent [−][src]
pub enum EpEvent {
OutgoingConnection(EpConnection),
IncomingConnection(EpConnection),
IncomingData(EpIncomingData),
IncomingError(EpIncomingError),
ConnectionClosed(EpConnectionClosed),
Error(KitsuneError),
EndpointClosed,
}
Expand description
Event emitted by a transport endpoint.
Variants
OutgoingConnection(EpConnection)
We’ve established an outgoing connection.
Tuple Fields of OutgoingConnection
0: EpConnection
IncomingConnection(EpConnection)
We’ve accepted an incoming connection.
Tuple Fields of IncomingConnection
0: EpConnection
IncomingData(EpIncomingData)
We’ve received incoming data on an open connection.
Tuple Fields of IncomingData
IncomingError(EpIncomingError)
We’ve received incoming error on an open connection.
Tuple Fields of IncomingError
ConnectionClosed(EpConnectionClosed)
A connection has closed (Url, Code, Reason).
Tuple Fields of ConnectionClosed
Error(KitsuneError)
A non-fatal internal error.
Tuple Fields of Error
0: KitsuneError
The endpoint has closed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EpEvent
impl !UnwindSafe for EpEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more