pub struct RawDisplayInfo {
pub display_id: DisplayId,
pub preferred_modes: Vec<Mode>,
pub edid_bytes: Vec<u8>,
pub pixel_formats: Vec<PixelFormat>,
}Expand description
Collects the information reported by the engine hardware about a display.
The data representation closely matches the formats used by display engine hardware. The display coordinator is responsible for parsing these formats and converting the information into forms that are more suitable for higher-level software.
Fields§
§display_id: DisplayId§preferred_modes: Vec<Mode>§edid_bytes: Vec<u8>§pixel_formats: Vec<PixelFormat>Trait Implementations§
Source§impl Clone for RawDisplayInfo
impl Clone for RawDisplayInfo
Source§fn clone(&self) -> RawDisplayInfo
fn clone(&self) -> RawDisplayInfo
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 moreSource§impl Debug for RawDisplayInfo
impl Debug for RawDisplayInfo
Source§impl<___E> Encode<RawDisplayInfo<'static>, ___E> for RawDisplayInfowhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<RawDisplayInfo<'static>, ___E> for RawDisplayInfowhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<RawDisplayInfo<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<RawDisplayInfo<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<Box<'static, RawDisplayInfo<'static>>, ___E> for RawDisplayInfo
impl<___E> EncodeOption<Box<'static, RawDisplayInfo<'static>>, ___E> for RawDisplayInfo
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, RawDisplayInfo<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, RawDisplayInfo<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'de> FromWire<RawDisplayInfo<'de>> for RawDisplayInfo
impl<'de> FromWire<RawDisplayInfo<'de>> for RawDisplayInfo
Source§fn from_wire(wire: RawDisplayInfo<'de>) -> Self
fn from_wire(wire: RawDisplayInfo<'de>) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for RawDisplayInfo
impl PartialEq for RawDisplayInfo
Source§fn eq(&self, other: &RawDisplayInfo) -> bool
fn eq(&self, other: &RawDisplayInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawDisplayInfo
Auto Trait Implementations§
impl Freeze for RawDisplayInfo
impl RefUnwindSafe for RawDisplayInfo
impl Send for RawDisplayInfo
impl Sync for RawDisplayInfo
impl Unpin for RawDisplayInfo
impl UnsafeUnpin for RawDisplayInfo
impl UnwindSafe for RawDisplayInfo
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> 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]