Struct windows_capture::monitor::Monitor
source · pub struct Monitor { /* private fields */ }Expand description
Represents A Monitor Device
Implementations§
source§impl Monitor
impl Monitor
sourcepub fn from_index(index: usize) -> Result<Self, Box<dyn Error + Send + Sync>>
pub fn from_index(index: usize) -> Result<Self, Box<dyn Error + Send + Sync>>
Get The Monitor From It’s Index
pub fn index(&self) -> Result<usize, Box<dyn Error + Send + Sync>>
sourcepub fn device_name(&self) -> Result<String, Box<dyn Error + Send + Sync>>
pub fn device_name(&self) -> Result<String, Box<dyn Error + Send + Sync>>
Get Monitor Device Name
sourcepub fn device_string(&self) -> Result<String, Box<dyn Error + Send + Sync>>
pub fn device_string(&self) -> Result<String, Box<dyn Error + Send + Sync>>
Get Monitor Device String
sourcepub fn enumerate() -> Result<Vec<Self>, Box<dyn Error + Send + Sync>>
pub fn enumerate() -> Result<Vec<Self>, Box<dyn Error + Send + Sync>>
Get A List Of All Monitors
sourcepub const fn from_raw_hmonitor(monitor: HMONITOR) -> Self
pub const fn from_raw_hmonitor(monitor: HMONITOR) -> Self
Create From A Raw HMONITOR
sourcepub const fn as_raw_hmonitor(&self) -> HMONITOR
pub const fn as_raw_hmonitor(&self) -> HMONITOR
Get The Raw HMONITOR
Trait Implementations§
source§impl PartialEq for Monitor
impl PartialEq for Monitor
impl Copy for Monitor
impl Eq for Monitor
impl StructuralEq for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
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