pub struct Setting {
pub data: SettingData,
/* private fields */
}Expand description
Rekordbox *SETTING.DAT file handler.
Fields§
§data: SettingDataSetting file data.
Implementations§
Source§impl Setting
impl Setting
Sourcepub fn new<P: AsRef<Path>>(path: P, data: SettingData) -> Self
pub fn new<P: AsRef<Path>>(path: P, data: SettingData) -> Self
Create a new generic Setting object with the given path and data.
Sourcepub fn new_mysetting<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn new_mysetting<P: AsRef<Path>>(path: P) -> Result<Self>
Create a new MYSETTING.DAT file filled with the default values.
Sourcepub fn new_mysetting2<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn new_mysetting2<P: AsRef<Path>>(path: P) -> Result<Self>
Create a new MYSETTING2.DAT file filled with the default values.
Sourcepub fn new_djmmysetting<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn new_djmmysetting<P: AsRef<Path>>(path: P) -> Result<Self>
Create a new DJMMYSETTING.DAT file filled with the default values.
Sourcepub fn new_devsetting<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn new_devsetting<P: AsRef<Path>>(path: P) -> Result<Self>
Create a new DEVSETTING.DAT file filled with the default values.
Sourcepub fn get_on_air_display(&self) -> Result<OnAirDisplay>
pub fn get_on_air_display(&self) -> Result<OnAirDisplay>
Sourcepub fn set_on_air_display(&mut self, on_air_display: OnAirDisplay) -> Result<()>
pub fn set_on_air_display(&mut self, on_air_display: OnAirDisplay) -> Result<()>
Sets the value of the “ON AIR DISPLAY” setting.
§Parameters
on_air_display: The new value of theOnAirDisplaysetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_lcd_brightness(&self) -> Result<LCDBrightness>
pub fn get_lcd_brightness(&self) -> Result<LCDBrightness>
Sourcepub fn set_lcd_brightness(
&mut self,
lcd_brightness: LCDBrightness,
) -> Result<()>
pub fn set_lcd_brightness( &mut self, lcd_brightness: LCDBrightness, ) -> Result<()>
Sets the value of the “LCD BRIGHTNESS” setting.
§Parameters
lcd_brightness: The new value of theLCDBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_quantize(&self) -> Result<Quantize>
pub fn get_quantize(&self) -> Result<Quantize>
Sourcepub fn set_quantize(&mut self, quantize: Quantize) -> Result<()>
pub fn set_quantize(&mut self, quantize: Quantize) -> Result<()>
Sets the value of the “QUANTIZE” setting.
§Parameters
quantize: The new value of theQuantizesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_auto_cue_level(&self) -> Result<AutoCueLevel>
pub fn get_auto_cue_level(&self) -> Result<AutoCueLevel>
Sourcepub fn set_auto_cue_level(&mut self, auto_cue_level: AutoCueLevel) -> Result<()>
pub fn set_auto_cue_level(&mut self, auto_cue_level: AutoCueLevel) -> Result<()>
Sets the value of the “AUTO CUE LEVEL” setting.
§Parameters
auto_cue_level: The new value of theAutoCueLevelsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_language(&self) -> Result<Language>
pub fn get_language(&self) -> Result<Language>
Sourcepub fn set_language(&mut self, language: Language) -> Result<()>
pub fn set_language(&mut self, language: Language) -> Result<()>
Sets the value of the “LANGUAGE” setting.
§Parameters
language: The new value of theLanguagesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_jog_ring_brightness(&self) -> Result<JogRingBrightness>
pub fn get_jog_ring_brightness(&self) -> Result<JogRingBrightness>
Sourcepub fn set_jog_ring_brightness(
&mut self,
jog_ring_brightness: JogRingBrightness,
) -> Result<()>
pub fn set_jog_ring_brightness( &mut self, jog_ring_brightness: JogRingBrightness, ) -> Result<()>
Sets the value of the “JOG RING BRIGHTNESS” setting.
§Parameters
jog_ring_brightness: The new value of theJogRingBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_jog_ring_indicator(&self) -> Result<JogRingIndicator>
pub fn get_jog_ring_indicator(&self) -> Result<JogRingIndicator>
Sourcepub fn set_jog_ring_indicator(
&mut self,
jog_ring_indicator: JogRingIndicator,
) -> Result<()>
pub fn set_jog_ring_indicator( &mut self, jog_ring_indicator: JogRingIndicator, ) -> Result<()>
Sets the value of the “JOG RING INDICATOR” setting.
§Parameters
jog_ring_indicator: The new value of theJogRingIndicatorsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_slip_flashing(&self) -> Result<SlipFlashing>
pub fn get_slip_flashing(&self) -> Result<SlipFlashing>
Sourcepub fn set_slip_flashing(&mut self, slip_flashing: SlipFlashing) -> Result<()>
pub fn set_slip_flashing(&mut self, slip_flashing: SlipFlashing) -> Result<()>
Sets the value of the “SLIP FLASHING” setting.
§Parameters
slip_flashing: The new value of theSlipFlashingsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_disc_slot_illumination(&self) -> Result<DiscSlotIllumination>
pub fn get_disc_slot_illumination(&self) -> Result<DiscSlotIllumination>
Sourcepub fn set_disc_slot_illumination(
&mut self,
disc_slot_illumination: DiscSlotIllumination,
) -> Result<()>
pub fn set_disc_slot_illumination( &mut self, disc_slot_illumination: DiscSlotIllumination, ) -> Result<()>
Sets the value of the “DISC SLOT ILLUMINATION” setting.
§Parameters
disc_slot_illumination: The new value of theDiscSlotIlluminationsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_eject_lock(&self) -> Result<EjectLock>
pub fn get_eject_lock(&self) -> Result<EjectLock>
Sourcepub fn set_eject_lock(&mut self, eject_lock: EjectLock) -> Result<()>
pub fn set_eject_lock(&mut self, eject_lock: EjectLock) -> Result<()>
Sets the value of the “EJECT/LOAD LOCK” setting.
§Parameters
eject_lock: The new value of theEjectLocksetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn set_sync(&mut self, sync: Sync) -> Result<()>
pub fn set_sync(&mut self, sync: Sync) -> Result<()>
Sets the value of the “SYNC” setting.
§Parameters
sync: The new value of theSyncsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_play_mode(&self) -> Result<PlayMode>
pub fn get_play_mode(&self) -> Result<PlayMode>
Sourcepub fn set_play_mode(&mut self, play_mode: PlayMode) -> Result<()>
pub fn set_play_mode(&mut self, play_mode: PlayMode) -> Result<()>
Sets the value of the “PLAY MODE” setting.
§Parameters
play_mode: The new value of thePlayModesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_quantize_beat_value(&self) -> Result<QuantizeBeatValue>
pub fn get_quantize_beat_value(&self) -> Result<QuantizeBeatValue>
Sourcepub fn set_quantize_beat_value(
&mut self,
quantize_beat_value: QuantizeBeatValue,
) -> Result<()>
pub fn set_quantize_beat_value( &mut self, quantize_beat_value: QuantizeBeatValue, ) -> Result<()>
Sets the value of the “QUANTIZE BEAT VALUE” setting.
§Parameters
quantize_beat_value: The new value of theQuantizeBeatValuesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_hotcue_autoload(&self) -> Result<HotCueAutoLoad>
pub fn get_hotcue_autoload(&self) -> Result<HotCueAutoLoad>
Sourcepub fn set_hotcue_autoload(
&mut self,
hotcue_autoload: HotCueAutoLoad,
) -> Result<()>
pub fn set_hotcue_autoload( &mut self, hotcue_autoload: HotCueAutoLoad, ) -> Result<()>
Sets the value of the “HOT CUE AUTO LOAD” setting.
§Parameters
hot_cue_autoload: The new value of theHotCueAutoLoadsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_hotcue_color(&self) -> Result<HotCueColor>
pub fn get_hotcue_color(&self) -> Result<HotCueColor>
Sourcepub fn set_hotcue_color(&mut self, hotcue_color: HotCueColor) -> Result<()>
pub fn set_hotcue_color(&mut self, hotcue_color: HotCueColor) -> Result<()>
Sets the value of the “HOT CUE COLOR” setting.
§Parameters
hot_cue_color: The new value of theHotCueColorsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_needle_lock(&self) -> Result<NeedleLock>
pub fn get_needle_lock(&self) -> Result<NeedleLock>
Sourcepub fn set_needle_lock(&mut self, needle_lock: NeedleLock) -> Result<()>
pub fn set_needle_lock(&mut self, needle_lock: NeedleLock) -> Result<()>
Sets the value of the “NEEDLE LOCK” setting.
§Parameters
needle_lock: The new value of theNeedleLocksetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_time_mode(&self) -> Result<TimeMode>
pub fn get_time_mode(&self) -> Result<TimeMode>
Sourcepub fn set_time_mode(&mut self, time_mode: TimeMode) -> Result<()>
pub fn set_time_mode(&mut self, time_mode: TimeMode) -> Result<()>
Sets the value of the “TIME MODE” setting.
§Parameters
time_mode: The new value of theTimeModesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_jog_mode(&self) -> Result<JogMode>
pub fn get_jog_mode(&self) -> Result<JogMode>
Sourcepub fn set_jog_mode(&mut self, jog_mode: JogMode) -> Result<()>
pub fn set_jog_mode(&mut self, jog_mode: JogMode) -> Result<()>
Sets the value of the “JOG MODE” setting.
§Parameters
jog_mode: The new value of theJogModesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_auto_cue(&self) -> Result<AutoCue>
pub fn get_auto_cue(&self) -> Result<AutoCue>
Sourcepub fn set_auto_cue(&mut self, auto_cue: AutoCue) -> Result<()>
pub fn set_auto_cue(&mut self, auto_cue: AutoCue) -> Result<()>
Sets the value of the “AUTO CUE” setting.
§Parameters
auto_cue: The new value of theAutoCuesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_master_tempo(&self) -> Result<MasterTempo>
pub fn get_master_tempo(&self) -> Result<MasterTempo>
Sourcepub fn set_master_tempo(&mut self, master_tempo: MasterTempo) -> Result<()>
pub fn set_master_tempo(&mut self, master_tempo: MasterTempo) -> Result<()>
Sets the value of the “MASTER TEMPO” setting.
§Parameters
master_tempo: The new value of theMasterTemposetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_tempo_range(&self) -> Result<TempoRange>
pub fn get_tempo_range(&self) -> Result<TempoRange>
Sourcepub fn set_tempo_range(&mut self, tempo_range: TempoRange) -> Result<()>
pub fn set_tempo_range(&mut self, tempo_range: TempoRange) -> Result<()>
Sets the value of the “TEMPO RANGE” setting.
§Parameters
tempo_range: The new value of theTempoRangesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_phase_meter(&self) -> Result<PhaseMeter>
pub fn get_phase_meter(&self) -> Result<PhaseMeter>
Sourcepub fn set_phase_meter(&mut self, phase_meter: PhaseMeter) -> Result<()>
pub fn set_phase_meter(&mut self, phase_meter: PhaseMeter) -> Result<()>
Sets the value of the “PHASE METER” setting.
§Parameters
phase_meter: The new value of thePhaseMetersetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting.
§Errors
Returns an error if the SettingContent is not a MySetting file.
Sourcepub fn get_vinyl_speed_adjust(&self) -> Result<VinylSpeedAdjust>
pub fn get_vinyl_speed_adjust(&self) -> Result<VinylSpeedAdjust>
Sourcepub fn set_vinyl_speed_adjust(
&mut self,
vinyl_speed_adjust: VinylSpeedAdjust,
) -> Result<()>
pub fn set_vinyl_speed_adjust( &mut self, vinyl_speed_adjust: VinylSpeedAdjust, ) -> Result<()>
Sets the value of the “VINYL SPEED ADJUST” setting.
§Parameters
vinyl_speed_adjust: The new value of theVinylSpeedAdjustsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_jog_display_mode(&self) -> Result<JogDisplayMode>
pub fn get_jog_display_mode(&self) -> Result<JogDisplayMode>
Sourcepub fn set_jog_display_mode(
&mut self,
jog_display_mode: JogDisplayMode,
) -> Result<()>
pub fn set_jog_display_mode( &mut self, jog_display_mode: JogDisplayMode, ) -> Result<()>
Sets the value of the “JOG DISPLAY MODE” setting.
§Parameters
jog_display_mode: The new value of theJogDisplayModesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sets the value of the “PAD/BUTTON BRIGHTNESS” setting.
§Parameters
pad_button_brightness: The new value of thePadButtonBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_jog_lcd_brightness(&self) -> Result<JogLCDBrightness>
pub fn get_jog_lcd_brightness(&self) -> Result<JogLCDBrightness>
Sourcepub fn set_jog_lcd_brightness(
&mut self,
jog_lcd_brightness: JogLCDBrightness,
) -> Result<()>
pub fn set_jog_lcd_brightness( &mut self, jog_lcd_brightness: JogLCDBrightness, ) -> Result<()>
Sets the value of the “JOG LCD BRIGHTNESS” setting.
§Parameters
jog_lcd_brightness: The new value of theJogLCDBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_waveform_divisions(&self) -> Result<WaveformDivisions>
pub fn get_waveform_divisions(&self) -> Result<WaveformDivisions>
Sourcepub fn set_waveform_divisions(
&mut self,
waveform_divisions: WaveformDivisions,
) -> Result<()>
pub fn set_waveform_divisions( &mut self, waveform_divisions: WaveformDivisions, ) -> Result<()>
Sets the value of the “WAVEFORM DIVISIONS” setting.
§Parameters
waveform_divisions: The new value of theWaveformDivisionssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_waveform(&self) -> Result<Waveform>
pub fn get_waveform(&self) -> Result<Waveform>
Sourcepub fn set_waveform(&mut self, waveform: Waveform) -> Result<()>
pub fn set_waveform(&mut self, waveform: Waveform) -> Result<()>
Sets the value of the “WAVEFORM / PHASE METER” setting.
§Parameters
waveform: The new value of theWaveformsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_beat_jump_beat_value(&self) -> Result<BeatJumpBeatValue>
pub fn get_beat_jump_beat_value(&self) -> Result<BeatJumpBeatValue>
Sourcepub fn set_beat_jump_beat_value(
&mut self,
beat_jump_beat_value: BeatJumpBeatValue,
) -> Result<()>
pub fn set_beat_jump_beat_value( &mut self, beat_jump_beat_value: BeatJumpBeatValue, ) -> Result<()>
Sets the value of the “BEAT JUMP BEAT VALUE” setting.
§Parameters
beat_jump_beat_value: The new value of theBeatJumpBeatValuesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeMySetting2.
§Errors
Returns an error if the SettingContent is not a MySetting2 file.
Sourcepub fn get_channel_fader_curve(&self) -> Result<ChannelFaderCurve>
pub fn get_channel_fader_curve(&self) -> Result<ChannelFaderCurve>
Sourcepub fn set_channel_fader_curve(
&mut self,
channel_fader_curve: ChannelFaderCurve,
) -> Result<()>
pub fn set_channel_fader_curve( &mut self, channel_fader_curve: ChannelFaderCurve, ) -> Result<()>
Sets the value of the “CH FADER CURVE” setting.
§Parameters
channel_fader_curve: The new value of theChannelFaderCurvesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_crossfader_curve(&self) -> Result<CrossfaderCurve>
pub fn get_crossfader_curve(&self) -> Result<CrossfaderCurve>
Sourcepub fn set_crossfader_curve(
&mut self,
crossfader_curve: CrossfaderCurve,
) -> Result<()>
pub fn set_crossfader_curve( &mut self, crossfader_curve: CrossfaderCurve, ) -> Result<()>
Sets the value of the “CROSSFADER CURVE” setting.
§Parameters
crossfader_curve: The new value of theCrossfaderCurvesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_headphones_pre_eq(&self) -> Result<HeadphonesPreEQ>
pub fn get_headphones_pre_eq(&self) -> Result<HeadphonesPreEQ>
Sourcepub fn set_headphones_pre_eq(
&mut self,
headphones_pre_eq: HeadphonesPreEQ,
) -> Result<()>
pub fn set_headphones_pre_eq( &mut self, headphones_pre_eq: HeadphonesPreEQ, ) -> Result<()>
Sets the value of the “HEADPHONES PRE EQ” setting.
§Parameters
headphones_pre_eq: The new value of theHeadphonesPreEQsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_headphones_mono_split(&self) -> Result<HeadphonesMonoSplit>
pub fn get_headphones_mono_split(&self) -> Result<HeadphonesMonoSplit>
Sourcepub fn set_headphones_mono_split(
&mut self,
headphones_mono_split: HeadphonesMonoSplit,
) -> Result<()>
pub fn set_headphones_mono_split( &mut self, headphones_mono_split: HeadphonesMonoSplit, ) -> Result<()>
Sets the value of the “HEADPHONES MONO SPLIT” setting.
§Parameters
headphones_mono_split: The new value of theHeadphonesMonoSplitsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_beat_fx_quantize(&self) -> Result<BeatFXQuantize>
pub fn get_beat_fx_quantize(&self) -> Result<BeatFXQuantize>
Sourcepub fn set_beat_fx_quantize(
&mut self,
beat_fx_quantize: BeatFXQuantize,
) -> Result<()>
pub fn set_beat_fx_quantize( &mut self, beat_fx_quantize: BeatFXQuantize, ) -> Result<()>
Sets the value of the “BEAT FX QUANTIZE” setting.
§Parameters
beat_fx_quantize: The new value of theBeatFXQuantizesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_mic_low_cut(&self) -> Result<MicLowCut>
pub fn get_mic_low_cut(&self) -> Result<MicLowCut>
Sourcepub fn set_mic_low_cut(&mut self, mic_low_cut: MicLowCut) -> Result<()>
pub fn set_mic_low_cut(&mut self, mic_low_cut: MicLowCut) -> Result<()>
Sets the value of the “MIC LOW CUT” setting.
§Parameters
mic_low_cut: The new value of theMicLowCutsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_talk_over_mode(&self) -> Result<TalkOverMode>
pub fn get_talk_over_mode(&self) -> Result<TalkOverMode>
Sourcepub fn set_talk_over_mode(&mut self, talk_over_mode: TalkOverMode) -> Result<()>
pub fn set_talk_over_mode(&mut self, talk_over_mode: TalkOverMode) -> Result<()>
Sets the value of the “TALK OVER MODE” setting.
§Parameters
talk_over_mode: The new value of theTalkOverModesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_talk_over_level(&self) -> Result<TalkOverLevel>
pub fn get_talk_over_level(&self) -> Result<TalkOverLevel>
Sourcepub fn set_talk_over_level(
&mut self,
talk_over_level: TalkOverLevel,
) -> Result<()>
pub fn set_talk_over_level( &mut self, talk_over_level: TalkOverLevel, ) -> Result<()>
Sets the value of the “TALK OVER LEVEL” setting.
§Parameters
talk_over_level: The new value of theTalkOverLevelsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_midi_channel(&self) -> Result<MidiChannel>
pub fn get_midi_channel(&self) -> Result<MidiChannel>
Sourcepub fn set_midi_channel(&mut self, midi_channel: MidiChannel) -> Result<()>
pub fn set_midi_channel(&mut self, midi_channel: MidiChannel) -> Result<()>
Sets the value of the “MIDI CH” setting.
§Parameters
midi_channel: The new value of theMidiChannelsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sets the value of the “MIDI BUTTON TYPE” setting.
§Parameters
midi_button_type: The new value of theMidiButtonTypesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_mixer_display_brightness(&self) -> Result<MixerDisplayBrightness>
pub fn get_mixer_display_brightness(&self) -> Result<MixerDisplayBrightness>
Sourcepub fn set_mixer_display_brightness(
&mut self,
mixer_display_brightness: MixerDisplayBrightness,
) -> Result<()>
pub fn set_mixer_display_brightness( &mut self, mixer_display_brightness: MixerDisplayBrightness, ) -> Result<()>
Sets the value of the “MIXER DISPLAY BRIGHTNESS” setting.
§Parameters
mixer_display_brightness: The new value of theMixerDisplayBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_mixer_indicator_brightness(&self) -> Result<MixerIndicatorBrightness>
pub fn get_mixer_indicator_brightness(&self) -> Result<MixerIndicatorBrightness>
Gets the value of the “MIXER INDICATOR BRIGHTNESS” setting.
§Returns
Ok(MixerIndicatorBrightness)if theSettingContentis of typeDJMMySetting.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn set_mixer_indicator_brightness(
&mut self,
mixer_indicator_brightness: MixerIndicatorBrightness,
) -> Result<()>
pub fn set_mixer_indicator_brightness( &mut self, mixer_indicator_brightness: MixerIndicatorBrightness, ) -> Result<()>
Sets the value of the “MIXER INDICATOR BRIGHTNESS” setting.
§Parameters
mixer_indicator_brightness: The new value of theMixerIndicatorBrightnesssetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_channel_fader_curve_long_fader(
&self,
) -> Result<ChannelFaderCurveLongFader>
pub fn get_channel_fader_curve_long_fader( &self, ) -> Result<ChannelFaderCurveLongFader>
Gets the value of the “CH FADER CURVE (LONG FADER)” setting.
§Returns
Ok(ChannelFaderCurveLongFader)if theSettingContentis of typeDJMMySetting.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn set_channel_fader_curve_long_fader(
&mut self,
channel_fader_curve_long_fader: ChannelFaderCurveLongFader,
) -> Result<()>
pub fn set_channel_fader_curve_long_fader( &mut self, channel_fader_curve_long_fader: ChannelFaderCurveLongFader, ) -> Result<()>
Sets the value of the “CH FADER CURVE (LONG FADER)” setting.
§Parameters
channel_fader_curve_long_fader: The new value of theChannelFaderCurveLongFadersetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDJMMySetting.
§Errors
Returns an error if the SettingContent is not a DJMMySetting file.
Sourcepub fn get_overview_waveform_type(&self) -> Result<OverviewWaveformType>
pub fn get_overview_waveform_type(&self) -> Result<OverviewWaveformType>
Sourcepub fn set_overview_waveform_type(
&mut self,
overview_waveform_type: OverviewWaveformType,
) -> Result<()>
pub fn set_overview_waveform_type( &mut self, overview_waveform_type: OverviewWaveformType, ) -> Result<()>
Sets the value of the “Type of the overview Waveform” setting.
§Parameters
overview_waveform_type: The new value of theOverviewWaveformTypesetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDevSetting.
§Errors
Returns an error if the SettingContent is not a DevSetting file.
Sourcepub fn get_waveform_color(&self) -> Result<WaveformColor>
pub fn get_waveform_color(&self) -> Result<WaveformColor>
Sourcepub fn set_waveform_color(
&mut self,
waveform_color: WaveformColor,
) -> Result<()>
pub fn set_waveform_color( &mut self, waveform_color: WaveformColor, ) -> Result<()>
Sets the value of the “Waveform color” setting.
§Parameters
waveform_color: The new value of theWaveformColorsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDevSetting.
§Errors
Returns an error if the SettingContent is not a DevSetting file.
Sourcepub fn get_key_display_format(&self) -> Result<KeyDisplayFormat>
pub fn get_key_display_format(&self) -> Result<KeyDisplayFormat>
Sourcepub fn set_key_display_format(
&mut self,
key_display_format: KeyDisplayFormat,
) -> Result<()>
pub fn set_key_display_format( &mut self, key_display_format: KeyDisplayFormat, ) -> Result<()>
Sets the value of the “Key display format” setting.
§Parameters
key_display_format: The new value of theKeyDisplayFormatsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDevSetting.
§Errors
Returns an error if the SettingContent is not a DevSetting file.
Sourcepub fn get_waveform_current_position(&self) -> Result<WaveformCurrentPosition>
pub fn get_waveform_current_position(&self) -> Result<WaveformCurrentPosition>
Sourcepub fn set_waveform_current_position(
&mut self,
waveform_current_position: WaveformCurrentPosition,
) -> Result<()>
pub fn set_waveform_current_position( &mut self, waveform_current_position: WaveformCurrentPosition, ) -> Result<()>
Sets the value of the “Waveform Current Position” setting.
§Parameters
waveform_current_position: The new value of theWaveformCurrentPositionsetting to be set.
§Returns
Ok(())if the value is successfully set.Err(SettingError::InvalidFile)if theSettingContentis not of typeDevSetting.
§Errors
Returns an error if the SettingContent is not a DevSetting file.