#[repr(C)]pub struct Mode {
pub active_area: SizeU,
pub refresh_rate_millihertz: u32,
pub flags: ModeFlags,
}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§
§active_area: SizeU§refresh_rate_millihertz: u32§flags: ModeFlagsTrait Implementations§
Source§impl<'a, ___E> Encode<Mode, ___E> for &'a Modewhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Mode, ___E> for &'a Modewhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<Mode, ___E> for Modewhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Mode, ___E> for Modewhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Mode, Mode>
const COPY_OPTIMIZATION: CopyOptimization<Mode, Mode>
Source§impl FromWireRef<Mode> for Mode
impl FromWireRef<Mode> for Mode
Source§fn from_wire_ref(wire: &Mode) -> Mode
fn from_wire_ref(wire: &Mode) -> Mode
Converts the given reference to this type.
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 UnsafeUnpin for Mode
impl UnwindSafe for Mode
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]