#[non_exhaustive]pub enum DualPlatformEvent {
PlatformChanged(DualPlatformSelection),
}Expand description
An event emitted by DualPlatformFeature.
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.
PlatformChanged(DualPlatformSelection)
The user changed the platform via an OS-selection button.
Trait Implementations§
Source§impl Clone for DualPlatformEvent
impl Clone for DualPlatformEvent
Source§fn clone(&self) -> DualPlatformEvent
fn clone(&self) -> DualPlatformEvent
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 DualPlatformEvent
Source§impl Debug for DualPlatformEvent
impl Debug for DualPlatformEvent
Source§impl EmittingFeature<DualPlatformEvent> for DualPlatformFeature
impl EmittingFeature<DualPlatformEvent> for DualPlatformFeature
Source§fn listen(&self) -> Receiver<DualPlatformEvent>
fn listen(&self) -> Receiver<DualPlatformEvent>
Creates a receiver that is being notified whenever a new event of type
T is emitted by the feature.impl Eq for DualPlatformEvent
Source§impl Hash for DualPlatformEvent
impl Hash for DualPlatformEvent
Source§impl PartialEq for DualPlatformEvent
impl PartialEq for DualPlatformEvent
impl StructuralPartialEq for DualPlatformEvent
Auto Trait Implementations§
impl Freeze for DualPlatformEvent
impl RefUnwindSafe for DualPlatformEvent
impl Send for DualPlatformEvent
impl Sync for DualPlatformEvent
impl Unpin for DualPlatformEvent
impl UnsafeUnpin for DualPlatformEvent
impl UnwindSafe for DualPlatformEvent
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