pub struct DisplayMode {
pub clock: u32,
pub hdisplay: u16,
pub hsync_start: u16,
pub hsync_end: u16,
pub htotal: u16,
pub vdisplay: u16,
pub vsync_start: u16,
pub vsync_end: u16,
pub vtotal: u16,
pub flags: u32,
pub preferred: bool,
}Expand description
A display mode (24 bytes on the wire, gud_display_mode_req).
Fields§
§clock: u32Pixel clock in kHz.
hdisplay: u16Horizontal display size.
hsync_start: u16Horizontal sync start.
hsync_end: u16Horizontal sync end.
htotal: u16Horizontal total size.
vdisplay: u16Vertical display size.
vsync_start: u16Vertical sync start.
vsync_end: u16Vertical sync end.
vtotal: u16Vertical total size.
flags: u32DISPLAY_MODE_FLAG_* bits (user-mask bits only).
preferred: boolWhether this is the preferred mode. Serialized as DISPLAY_MODE_FLAG_PREFERRED.
Trait Implementations§
Source§impl Clone for DisplayMode
impl Clone for DisplayMode
Source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
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 DisplayMode
Source§impl Debug for DisplayMode
impl Debug for DisplayMode
impl Eq for DisplayMode
Source§impl Format for DisplayMode
impl Format for DisplayMode
Source§impl PartialEq for DisplayMode
impl PartialEq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations§
impl Freeze for DisplayMode
impl RefUnwindSafe for DisplayMode
impl Send for DisplayMode
impl Sync for DisplayMode
impl Unpin for DisplayMode
impl UnsafeUnpin for DisplayMode
impl UnwindSafe for DisplayMode
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