#[non_exhaustive]pub struct DisplayIdStereoInterface {
pub viewing_mode: StereoViewingMode,
pub sync_polarity_positive: bool,
pub sync_interface: StereoSyncInterface,
}Expand description
Stereo display interface parameters, decoded from the Stereo Display Interface Data Block
(DisplayID 1.x 0x10).
Describes how stereoscopic 3D content is encoded and how synchronization is delivered to active-shutter glasses.
Stored in DisplayCapabilities::stereo_interface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.viewing_mode: StereoViewingModeHow left-eye and right-eye images are encoded in the video signal.
sync_polarity_positive: boolPolarity of the 3D sync signal sent to the glasses.
true = positive (glasses open left eye on high); false = negative.
Only meaningful for StereoViewingMode::FieldSequential.
sync_interface: StereoSyncInterfacePhysical channel used to deliver the sync signal to the glasses.
Implementations§
Source§impl DisplayIdStereoInterface
impl DisplayIdStereoInterface
Sourcepub fn new(
viewing_mode: StereoViewingMode,
sync_polarity_positive: bool,
sync_interface: StereoSyncInterface,
) -> Self
pub fn new( viewing_mode: StereoViewingMode, sync_polarity_positive: bool, sync_interface: StereoSyncInterface, ) -> Self
Constructs a DisplayIdStereoInterface from its decoded fields.
Trait Implementations§
Source§impl Clone for DisplayIdStereoInterface
impl Clone for DisplayIdStereoInterface
Source§fn clone(&self) -> DisplayIdStereoInterface
fn clone(&self) -> DisplayIdStereoInterface
Returns a duplicate of the value. Read more
1.0.0 · 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 DisplayIdStereoInterface
impl Debug for DisplayIdStereoInterface
Source§impl PartialEq for DisplayIdStereoInterface
impl PartialEq for DisplayIdStereoInterface
impl Copy for DisplayIdStereoInterface
impl Eq for DisplayIdStereoInterface
impl StructuralPartialEq for DisplayIdStereoInterface
Auto Trait Implementations§
impl Freeze for DisplayIdStereoInterface
impl RefUnwindSafe for DisplayIdStereoInterface
impl Send for DisplayIdStereoInterface
impl Sync for DisplayIdStereoInterface
impl Unpin for DisplayIdStereoInterface
impl UnsafeUnpin for DisplayIdStereoInterface
impl UnwindSafe for DisplayIdStereoInterface
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