pub enum Event {
Connected,
StreamOpened(u64),
StreamReadable(u64),
StreamWritable(u64),
StreamStopped {
id: u64,
code: u64,
},
StreamReset {
id: u64,
code: u64,
},
StreamsAvailable(bool),
PathMigrated(SocketAddr),
Closed(ConnectionError),
}Expand description
Application-visible events.
Variants§
Connected
The handshake completed.
StreamOpened(u64)
The peer opened a stream.
StreamReadable(u64)
StreamWritable(u64)
StreamStopped
The peer sent STOP_SENDING (a RESET_STREAM was sent in reply).
StreamReset
The peer reset the stream.
StreamsAvailable(bool)
More locally initiated streams of this kind (true = bidirectional) may be opened.
PathMigrated(SocketAddr)
A path changed after successful validation.
Closed(ConnectionError)
The connection closed; it drains for a while before Connection::is_drained.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin 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