#[non_exhaustive]#[repr(u8)]pub enum ActivityEventType {
NoActivityTimeoutReached = 0,
UserActivityDetected = 1,
}Expand description
The kind of user-activity event.
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.
NoActivityTimeoutReached = 0
The no-activity timeout was reached.
UserActivityDetected = 1
User activity was detected.
Trait Implementations§
Source§impl Clone for ActivityEventType
impl Clone for ActivityEventType
Source§fn clone(&self) -> ActivityEventType
fn clone(&self) -> ActivityEventType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActivityEventType
Source§impl Debug for ActivityEventType
impl Debug for ActivityEventType
impl Eq for ActivityEventType
Source§impl From<ActivityEventType> for u8
impl From<ActivityEventType> for u8
Source§fn from(enum_value: ActivityEventType) -> Self
fn from(enum_value: ActivityEventType) -> Self
Converts to this type from the input type.
Source§impl Hash for ActivityEventType
impl Hash for ActivityEventType
Source§impl PartialEq for ActivityEventType
impl PartialEq for ActivityEventType
impl StructuralPartialEq for ActivityEventType
Source§impl TryFrom<u8> for ActivityEventType
impl TryFrom<u8> for ActivityEventType
Source§type Error = TryFromPrimitiveError<ActivityEventType>
type Error = TryFromPrimitiveError<ActivityEventType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ActivityEventType
impl TryFromPrimitive for ActivityEventType
const NAME: &'static str = "ActivityEventType"
type Primitive = u8
type Error = TryFromPrimitiveError<ActivityEventType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ActivityEventType
impl RefUnwindSafe for ActivityEventType
impl Send for ActivityEventType
impl Sync for ActivityEventType
impl Unpin for ActivityEventType
impl UnsafeUnpin for ActivityEventType
impl UnwindSafe for ActivityEventType
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