pub struct Response {
pub mime: String,
pub body: Vec<u8>,
}Expand description
One gopher reply: the body, plus the MIME inferred from the item type.
Fields§
§mime: StringA best-effort MIME type from the requested item type. Menus report
application/gopher-menu so a consumer can route them to
crate::menu::parse.
body: Vec<u8>The reply body, read to EOF.
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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