pub enum GopherResponse {
Menu(Vec<DirEntity>),
TextFile(Bytes),
BinaryFile(Bytes),
GopherPlusRedirect(DirEntity),
}
Expand description
A server-to-client message.
Variants§
Menu(Vec<DirEntity>)
A list of resources.
TextFile(Bytes)
A text document.
BinaryFile(Bytes)
A binary file download.
GopherPlusRedirect(DirEntity)
A single menu item enclosed in a Gopher+ protocol response.
Useful for redirecting Gopher+ clients to the standard Gopher protocol.
Implementations§
Trait Implementations§
Source§impl Clone for GopherResponse
impl Clone for GopherResponse
Source§fn clone(&self) -> GopherResponse
fn clone(&self) -> GopherResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for GopherResponse
impl RefUnwindSafe for GopherResponse
impl Send for GopherResponse
impl Sync for GopherResponse
impl Unpin for GopherResponse
impl UnwindSafe for GopherResponse
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