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

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

A server-to-client message.

Variants

A list of resources.

A text document.

A binary file download.

A single menu item enclosed in a Gopher+ protocol response.

Useful for redirecting Gopher+ clients to the standard Gopher protocol.

Methods

impl GopherResponse
[src]

[src]

Construct a menu with a single error line.

[src]

Encode the response into bytes for sending over the wire.

Trait Implementations

impl Clone for GopherResponse
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GopherResponse
[src]

[src]

Formats the value using the given formatter.