pub enum NativeMonitorId {
Numeric(u32),
Name(String),
Unavailable,
}
Expand description
Native platform identifier for a monitor. Different platforms use fundamentally different types to represent a monitor ID.
Variants§
Numeric(u32)
Cocoa and X11 use a numeric identifier to represent a monitor.
Name(String)
Win32 uses a Unicode string to represent a monitor.
Other platforms (Android) don’t support monitor identification.
Trait Implementations§
Source§impl Clone for NativeMonitorId
impl Clone for NativeMonitorId
Source§fn clone(&self) -> NativeMonitorId
fn clone(&self) -> NativeMonitorId
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 PartialEq for NativeMonitorId
impl PartialEq for NativeMonitorId
impl Eq for NativeMonitorId
impl StructuralPartialEq for NativeMonitorId
Auto Trait Implementations§
impl Freeze for NativeMonitorId
impl RefUnwindSafe for NativeMonitorId
impl Send for NativeMonitorId
impl Sync for NativeMonitorId
impl Unpin for NativeMonitorId
impl UnwindSafe for NativeMonitorId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more