pub enum CloseReason {
Finished,
Reconnected,
Idle,
Rejected,
InternalError,
Evicted,
}
Expand description
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§
Source§impl Clone for CloseReason
impl Clone for CloseReason
Source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a duplicate 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 moreSource§impl Debug for CloseReason
impl Debug for CloseReason
Source§impl<'de> Deserialize<'de> for CloseReason
impl<'de> Deserialize<'de> for CloseReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CloseReason
impl Display for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
Source§impl Serialize for CloseReason
impl Serialize for CloseReason
impl Copy for CloseReason
impl Eq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
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