[][src]Enum seymour_protocol::Response

pub enum Response {
    AckUser {
        id: i64,
    },
    StartSubscriptionList,
    Subscription {
        id: i64,
        url: String,
    },
    StartEntryList,
    Entry {
        id: i64,
        feed_id: i64,
        feed_url: String,
        title: String,
        url: String,
    },
    EndList,
    AckSubscribe,
    AckUnsubscribe,
    AckMarkRead,
    ResourceNotFound(String),
    BadCommand(String),
    NeedUser(String),
    InternalError(String),
}

Responses sent from seymour server

Variants

AckUser

Acknowledgement for selecting current user

Fields of AckUser

id: i64
StartSubscriptionList

Beginning of a list of subscriptions

Must be followed by zero or more Subscription lines and one EndList.

Subscription

A single subscription entry

Must be preceeded by one StartSubscriptionList and followed by one EndList.

Fields of Subscription

id: i64url: String
StartEntryList

Beginning of a list of feed entries

Must be followed by zero or more Entry lines and one EndList.

Entry

A single feed entry

Must be preceeded by one StartEntryList and followed by one EndList.

Fields of Entry

id: i64feed_id: i64feed_url: Stringtitle: Stringurl: String
EndList

Ends a list sent by the server

Must be preceeded by at least either a StartSubscriptionList or a StartEntryList.

AckSubscribe

Acknowledgement for subscribing the current user to a new feed

AckUnsubscribe

Acknowledgement for unsubscribing the current user from a feed

AckMarkRead

Acknowledgement for marking a feed entry as read by the current user

ResourceNotFound(String)

Error stating that the specified resource was not found

BadCommand(String)

Error stating that the command sent was not valid

NeedUser(String)

Error stating that the command sent requires a selected user, but no user has been selected

InternalError(String)

Error stating that the seymour server hit an internal problem while attempting to serve the request

Trait Implementations

impl Debug for Response[src]

impl Display for Response[src]

impl From<ParseMessageError> for Response[src]

impl FromStr for Response[src]

type Err = ParseMessageError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.