#[non_exhaustive]pub enum Input<'a> {
Connected {
version: Version,
},
Received(&'a str),
Disconnected,
Timeout,
}Expand description
Events the driver feeds into the engine, via Engine::handle.
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.
Connected
The WebSocket handshake completed with this negotiated version.
Received(&'a str)
One complete text frame arrived.
Disconnected
The connection went away.
Timeout
Nothing happened but time. Every timer whose deadline has passed fires.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Input<'a>
impl<'a> Freeze for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnsafeUnpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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