#[non_exhaustive]pub enum Event {
Update(Box<Update>),
Disconnected {
path: StreamPath,
reason: DisconnectReason,
},
Reconnected {
path: StreamPath,
},
}Expand description
What the supervised stream yields.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Update(Box<Update>)
One frame of one stream, boxed, as the other variants are small.
Disconnected
A path’s connection was lost. Every update on that path is stale until
the matching Event::Reconnected, which always follows while the
client runs.
Reconnected
The path is current again: a fresh connection has replayed its streams, or the path’s last stream left during the outage, so nothing on it is stale. Sent once per outage, however many attempts it took. Drop book state for the path and resync.
Fields
§
path: StreamPathThe path that came back.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Freeze for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin 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