#[repr(C)]pub struct Mode {
pub horizontal_resolution: u32,
pub vertical_resolution: u32,
pub refresh_rate_e2: u32,
pub flags: u32,
}
Expand description
Describes an operational mode for a display device attached to the system.
The operational parameters that make up a mode description must be updated atomically, using a resource-intensive “mode setting” operation. Parameters that can be changed quickly, such as brightness and contrast, do not belong in a mode description.
Fields§
§horizontal_resolution: u32
Number of pixels on a horizontal line of the displayed image.
This describes the image data sent to the display, which is also called the “active area” or “active pixels” in raster scan terminology. Despite the name, some of the “active pixels” may not actually be shown to the user, for example due to corners or notches.
vertical_resolution: u32
Number of horizontal lines that make up a displayed image.
This describes the image data sent to the display, which is also called the “active area” or “active pixels” in raster scan terminology. Despite the name, some of the “active pixels” may not actually be shown to the user, for example due to corners or notches.
refresh_rate_e2: u32
Number of images transmitted to the display in 100 seconds.
This is the display’s vertical refresh rate, in centihertz (0.01 Hz).
flags: u32
Bit field of mode attributes.
This field is currently unused. It will be used for binary attributes, such as whether a display mode is interlaced.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Mode, D> for Mode
impl<D: ResourceDialect> Decode<Mode, D> for Mode
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<u32, D>> Encode<Mode, D> for (T0, T1, T2, T3)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<u32, D>> Encode<Mode, D> for (T0, T1, T2, T3)
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
Source§impl TypeMarker for Mode
impl TypeMarker for Mode
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Mode
impl ValueTypeMarker for Mode
impl Copy for Mode
impl Eq for Mode
impl Persistable for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)