#[non_exhaustive]pub enum Handled {
Answer(String),
Later,
Screenshot,
Snapshot,
Close(Option<String>),
}Expand description
What the Server made of a line.
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.
Answer(String)
Its answer, to send now.
Later
Its answer comes from Server::after_frame: a play’s when its
last frame has run, or any request’s behind a play or a picture.
Screenshot
The backend answers it after this frame is shown, with
Server::screenshot.
Snapshot
The backend answers it after this frame, with a heap snapshot
(App::heap_snapshot) given to Server::snapshot.
Close(Option<String>)
Close the connection, after sending this line if there is one,
and read nothing more: the first line wasn’t a hello with the
token, a line was longer than MAX_LINE, or the client speaks
another link version (the line is the hello’s answer, saying the
build’s).
Trait Implementations§
impl Eq for Handled
impl StructuralPartialEq for Handled
Auto Trait Implementations§
impl Freeze for Handled
impl RefUnwindSafe for Handled
impl Send for Handled
impl Sync for Handled
impl Unpin for Handled
impl UnsafeUnpin for Handled
impl UnwindSafe for Handled
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