Enum srt_protocol::packet::ServerRejectReason
source · #[non_exhaustive]pub enum ServerRejectReason {
Show 21 variants
Fallback,
KeyNotSup,
Filepath,
HostNotFound,
BadRequest,
Unauthorized,
Overload,
Forbidden,
Notfound,
BadMode,
Unacceptable,
Conflict,
NotSupMedia,
Locked,
FailedDepend,
InternalServerError,
Unimplemented,
Gateway,
Down,
Version,
NoRoom,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fallback
KeyNotSup
Filepath
HostNotFound
BadRequest
Overload
Forbidden
Notfound
BadMode
Unacceptable
Conflict
NotSupMedia
Locked
FailedDepend
InternalServerError
Unimplemented
Gateway
Down
Version
NoRoom
Trait Implementations§
source§impl Clone for ServerRejectReason
impl Clone for ServerRejectReason
source§fn clone(&self) -> ServerRejectReason
fn clone(&self) -> ServerRejectReason
Returns a copy 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 ServerRejectReason
impl Debug for ServerRejectReason
source§impl Display for ServerRejectReason
impl Display for ServerRejectReason
source§impl From<ServerRejectReason> for RejectReason
impl From<ServerRejectReason> for RejectReason
source§fn from(rr: ServerRejectReason) -> RejectReason
fn from(rr: ServerRejectReason) -> RejectReason
Converts to this type from the input type.
source§impl From<ServerRejectReason> for i32
impl From<ServerRejectReason> for i32
source§fn from(rr: ServerRejectReason) -> i32
fn from(rr: ServerRejectReason) -> i32
Converts to this type from the input type.
source§impl PartialEq<ServerRejectReason> for ServerRejectReason
impl PartialEq<ServerRejectReason> for ServerRejectReason
source§fn eq(&self, other: &ServerRejectReason) -> bool
fn eq(&self, other: &ServerRejectReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for ServerRejectReason
impl TryFrom<i32> for ServerRejectReason
impl Copy for ServerRejectReason
impl Eq for ServerRejectReason
impl StructuralEq for ServerRejectReason
impl StructuralPartialEq for ServerRejectReason
Auto Trait Implementations§
impl RefUnwindSafe for ServerRejectReason
impl Send for ServerRejectReason
impl Sync for ServerRejectReason
impl Unpin for ServerRejectReason
impl UnwindSafe for ServerRejectReason
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.