Enum medea_client_api_proto::CloseReason[][src]

pub enum CloseReason {
    Finished,
    Reconnected,
    Idle,
    Rejected,
    InternalError,
    Evicted,
}

Reason of disconnecting Web Client from Media Server.

Variants

Finished

Client session was finished on a server side.

Reconnected

Old connection was closed due to a client reconnection.

Idle

Connection has been inactive for a while and thus considered idle by a server.

Rejected

Establishing of connection with a server was rejected on server side.

Most likely because of incorrect Member credentials.

InternalError

Server internal error has occurred while connecting.

This close reason is similar to 500 HTTP status code.

Evicted

Client was evicted on the server side.

Trait Implementations

impl Clone for CloseReason[src]

impl Copy for CloseReason[src]

impl Debug for CloseReason[src]

impl<'de> Deserialize<'de> for CloseReason[src]

impl Display for CloseReason[src]

impl Eq for CloseReason[src]

impl PartialEq<CloseReason> for CloseReason[src]

impl Serialize for CloseReason[src]

impl StructuralEq for CloseReason[src]

impl StructuralPartialEq for CloseReason[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.