Enum quinn_proto::Event [−][src]
pub enum Event {
HandshakeDataReady,
Connected,
ConnectionLost {
reason: ConnectionError,
},
Stream(StreamEvent),
DatagramReceived,
}Events of interest to the application
Variants
The connection’s handshake data is ready
The connection was successfully established
The connection was lost
Emitted if the peer closes the connection or an error is encountered.
Show fields
Fields of ConnectionLost
reason: ConnectionErrorReason that the connection was closed
Stream(StreamEvent)Stream events
One or more application datagrams have been received
Trait Implementations
impl From<ConnectionError> for Event[src]
impl From<ConnectionError> for Event[src]fn from(x: ConnectionError) -> Self[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl RefUnwindSafe for Eventimpl UnwindSafe for Event
impl UnwindSafe for EventBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,