pub enum GuppyResponse {
Success {
mime: String,
body: Vec<u8>,
},
Prompt {
text: String,
},
Redirect {
target: String,
},
Error {
message: String,
},
}Expand description
A complete guppy response, as returned by the client.
Variants§
Success
A reassembled successful response.
Prompt
1 <prompt> — repeat the request with user input in the URL query.
Redirect
3 <url> — re-request at this (possibly relative) URL.
Error
4 <error> — a human-readable error for the user.
Trait Implementations§
Source§impl Clone for GuppyResponse
impl Clone for GuppyResponse
Source§fn clone(&self) -> GuppyResponse
fn clone(&self) -> GuppyResponse
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 GuppyResponse
impl Debug for GuppyResponse
impl Eq for GuppyResponse
Source§impl PartialEq for GuppyResponse
impl PartialEq for GuppyResponse
impl StructuralPartialEq for GuppyResponse
Auto Trait Implementations§
impl Freeze for GuppyResponse
impl RefUnwindSafe for GuppyResponse
impl Send for GuppyResponse
impl Sync for GuppyResponse
impl Unpin for GuppyResponse
impl UnsafeUnpin for GuppyResponse
impl UnwindSafe for GuppyResponse
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