pub struct DisplayState {
pub mode: DisplayMode,
pub format: PixelFormat,
pub connector: u8,
pub properties: Vec<Property, MAX_PROPERTIES>,
}Expand description
Display state accepted by a SET_STATE_CHECK request.
Read the latest committed configuration with GudClass::committed_state
when a GudEvent::StateCommit event arrives.
Fields§
§mode: DisplayModeDisplay mode chosen by the host.
format: PixelFormatPixel format of upcoming framebuffer updates.
connector: u8Connector the mode applies to (index into Config::connectors).
properties: Vec<Property, MAX_PROPERTIES>Property values supplied by the host.
Trait Implementations§
Source§impl Clone for DisplayState
impl Clone for DisplayState
Source§fn clone(&self) -> DisplayState
fn clone(&self) -> DisplayState
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 DisplayState
impl Debug for DisplayState
Source§impl Format for DisplayState
Available on crate feature defmt only.
impl Format for DisplayState
Available on crate feature
defmt only.Source§impl PartialEq for DisplayState
impl PartialEq for DisplayState
impl StructuralPartialEq for DisplayState
Auto Trait Implementations§
impl Freeze for DisplayState
impl RefUnwindSafe for DisplayState
impl Send for DisplayState
impl Sync for DisplayState
impl Unpin for DisplayState
impl UnsafeUnpin for DisplayState
impl UnwindSafe for DisplayState
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