pub struct V2ipScalingSettings {
pub mode: MxrSignalType,
pub refresh: u16,
pub flags: u8,
}Expand description
A V2IP output’s scaling mode, refresh rate and flags.
Fields§
§mode: MxrSignalTypeThe signal type the output scales to.
refresh: u16Refresh rate in Hz.
flags: u8The flag bits below.
Implementations§
Source§impl V2ipScalingSettings
impl V2ipScalingSettings
Sourcepub fn merge(self, previous: Self) -> Self
pub fn merge(self, previous: Self) -> Self
Folds a received scaling config onto the cached one, field by field.
A write carries the mode or the options alone, so taking the block
wholesale would drop whichever half was not being written. The options
branch replaces the option bit rather than adding to it, which is what
lets an options-only write clear SCALING_FLAG_AUTO_SCALING.
Trait Implementations§
Source§impl Clone for V2ipScalingSettings
impl Clone for V2ipScalingSettings
Source§fn clone(&self) -> V2ipScalingSettings
fn clone(&self) -> V2ipScalingSettings
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 moreimpl Copy for V2ipScalingSettings
Source§impl Debug for V2ipScalingSettings
impl Debug for V2ipScalingSettings
Source§impl Default for V2ipScalingSettings
impl Default for V2ipScalingSettings
Source§fn default() -> V2ipScalingSettings
fn default() -> V2ipScalingSettings
Returns the “default value” for a type. Read more
impl Eq for V2ipScalingSettings
Source§impl PartialEq for V2ipScalingSettings
impl PartialEq for V2ipScalingSettings
impl StructuralPartialEq for V2ipScalingSettings
Auto Trait Implementations§
impl Freeze for V2ipScalingSettings
impl RefUnwindSafe for V2ipScalingSettings
impl Send for V2ipScalingSettings
impl Sync for V2ipScalingSettings
impl Unpin for V2ipScalingSettings
impl UnsafeUnpin for V2ipScalingSettings
impl UnwindSafe for V2ipScalingSettings
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