#[repr(i32)]pub enum RoomEndReason {
RoomEndUnknown = 0,
RoomEndApiDelete = 1,
RoomEndIdleTimeout = 2,
RoomEndServerShutdown = 3,
RoomEndSuperseded = 4,
RoomEndOpenFailed = 5,
}Expand description
why a room ended, reported on room-ended telemetry
Variants§
RoomEndUnknown = 0
RoomEndApiDelete = 1
RoomService.DeleteRoom was called
RoomEndIdleTimeout = 2
the room sat empty past its empty or departure timeout
RoomEndServerShutdown = 3
the server instance is shutting down
RoomEndSuperseded = 4
the room was restarted or replaced elsewhere
RoomEndOpenFailed = 5
the room failed to finish opening
Implementations§
Source§impl RoomEndReason
impl RoomEndReason
Source§impl RoomEndReason
impl RoomEndReason
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RoomEndReason
impl Clone for RoomEndReason
impl Copy for RoomEndReason
Source§impl Debug for RoomEndReason
impl Debug for RoomEndReason
Source§impl Default for RoomEndReason
impl Default for RoomEndReason
Source§fn default() -> RoomEndReason
fn default() -> RoomEndReason
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for RoomEndReason
impl<'de> Deserialize<'de> for RoomEndReason
§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
impl Eq for RoomEndReason
Source§impl From<RoomEndReason> for i32
impl From<RoomEndReason> for i32
Source§fn from(value: RoomEndReason) -> i32
fn from(value: RoomEndReason) -> i32
Converts to this type from the input type.
Source§impl Hash for RoomEndReason
impl Hash for RoomEndReason
Source§impl Ord for RoomEndReason
impl Ord for RoomEndReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RoomEndReason
impl PartialEq for RoomEndReason
Source§impl PartialOrd for RoomEndReason
impl PartialOrd for RoomEndReason
§impl Serialize for RoomEndReason
impl Serialize for RoomEndReason
impl StructuralPartialEq for RoomEndReason
Source§impl TryFrom<i32> for RoomEndReason
impl TryFrom<i32> for RoomEndReason
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RoomEndReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<RoomEndReason, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RoomEndReason
impl RefUnwindSafe for RoomEndReason
impl Send for RoomEndReason
impl Sync for RoomEndReason
impl Unpin for RoomEndReason
impl UnsafeUnpin for RoomEndReason
impl UnwindSafe for RoomEndReason
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