pub enum ResponseBody {
Welcome {
version: u32,
verbs: Vec<String>,
session: String,
},
Done {
outcome: String,
points: Vec<ResolvedPoint>,
detail: Option<String>,
elapsed_ms: u64,
},
Located {
moved: Vec<String>,
missing: Vec<String>,
},
Closed,
Error {
detail: String,
},
}Variants§
Welcome
Answer to hello: what this build speaks and what it can do.
Fields
Done
A step ran. outcome is the same vocabulary a run report uses:
verified · executed · failed.
A step that ran and failed honestly is a done with
outcome: "failed" and a detail; a request that could not be
understood or resolved is an error. That is the same line the
exit codes draw between 1 and 2.
Fields
§
points: Vec<ResolvedPoint>Located
Regions were re-located.
Fields
Closed
Acknowledgment of bye. The last line before stdout closes.
Error
The request could not be honored. detail is written for a human
to read and act on, not for a stack trace.
Trait Implementations§
Source§impl Clone for ResponseBody
impl Clone for ResponseBody
Source§fn clone(&self) -> ResponseBody
fn clone(&self) -> ResponseBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseBody
impl Debug for ResponseBody
Source§impl<'de> Deserialize<'de> for ResponseBody
impl<'de> Deserialize<'de> for ResponseBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResponseBody
impl PartialEq for ResponseBody
Source§impl Serialize for ResponseBody
impl Serialize for ResponseBody
impl StructuralPartialEq for ResponseBody
Auto Trait Implementations§
impl Freeze for ResponseBody
impl RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl Sync for ResponseBody
impl Unpin for ResponseBody
impl UnsafeUnpin for ResponseBody
impl UnwindSafe for ResponseBody
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