pub struct DisplayInfo {
pub host: String,
pub display: i32,
pub screen: i32,
}Expand description
Display info returned by parse_display
Fields§
§host: StringThe hostname
display: i32The display number
screen: i32The screen number
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
Source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
Returns a copy 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 Debug for DisplayInfo
impl Debug for DisplayInfo
Source§impl Hash for DisplayInfo
impl Hash for DisplayInfo
Source§impl Ord for DisplayInfo
impl Ord for DisplayInfo
Source§fn cmp(&self, other: &DisplayInfo) -> Ordering
fn cmp(&self, other: &DisplayInfo) -> Ordering
1.21.0 · 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
Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
Source§impl PartialOrd for DisplayInfo
impl PartialOrd for DisplayInfo
impl Eq for DisplayInfo
impl StructuralPartialEq for DisplayInfo
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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