Enum gopher_core::types::GopherResponse [] [src]

pub enum GopherResponse {
    Menu(Vec<DirEntity>),
    TextFile(EasyBuf),
    BinaryFile(EasyBuf),
}

A server-to-client message.

Variants

A list of resources.

A text document.

A binary file download.

Methods

impl GopherResponse
[src]

Construct a menu with a single error line.

Encode the response into bytes for sending over the wire.

Trait Implementations

impl Clone for GopherResponse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GopherResponse
[src]

Formats the value using the given formatter.