Enum quinn_proto::Event
source · pub enum Event {
HandshakeDataReady,
Connected,
ConnectionLost {
reason: ConnectionError,
},
Stream(StreamEvent),
DatagramReceived,
}
Expand description
Events of interest to the application
Variants§
HandshakeDataReady
The connection’s handshake data is ready
Connected
The connection was successfully established
ConnectionLost
Fields
§
reason: ConnectionError
Reason that the connection was closed
The connection was lost
Emitted if the peer closes the connection or an error is encountered.
Stream(StreamEvent)
Stream events
DatagramReceived
One or more application datagrams have been received
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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