Skip to main content

Setting

Struct Setting 

Source
pub struct Setting {
    pub data: SettingData,
    /* private fields */
}
Expand description

Rekordbox *SETTING.DAT file handler.

Fields§

§data: SettingData

Setting file data.

Implementations§

Source§

impl Setting

Source

pub fn new<P: AsRef<Path>>(path: P, data: SettingData) -> Self

Create a new generic Setting object with the given path and data.

Source

pub fn new_mysetting<P: AsRef<Path>>(path: P) -> Result<Self>

Create a new MYSETTING.DAT file filled with the default values.

Source

pub fn new_mysetting2<P: AsRef<Path>>(path: P) -> Result<Self>

Create a new MYSETTING2.DAT file filled with the default values.

Source

pub fn new_djmmysetting<P: AsRef<Path>>(path: P) -> Result<Self>

Create a new DJMMYSETTING.DAT file filled with the default values.

Source

pub fn new_devsetting<P: AsRef<Path>>(path: P) -> Result<Self>

Create a new DEVSETTING.DAT file filled with the default values.

Source

pub fn load<P: AsRef<Path>>(path: P) -> Result<Self>

Read a Rekordbox Setting file.

Source

pub fn dump_copy<P: AsRef<Path>>(&mut self, path: P) -> Result<()>

Write the Setting file.

Source

pub fn dump(&mut self) -> Result<()>

Write the Setting file to the original file.

Source

pub fn get_on_air_display(&self) -> Result<OnAirDisplay>

Gets the value of the “ON AIR DISPLAY” setting.

§Returns
  • Ok(OnAirDisplay) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the OnAirDisplay setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_lcd_brightness(&self) -> Result<LCDBrightness>

Gets the value of the “LCD BRIGHTNESS” setting.

§Returns
  • Ok(LCDBrightness) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the LCDBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_quantize(&self) -> Result<Quantize>

Gets the value of the “QUANTIZE” setting.

§Returns
  • Ok(Quantize) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn set_quantize(&mut self, quantize: Quantize) -> Result<()>

Sets the value of the “QUANTIZE” setting.

§Parameters
  • quantize: The new value of the Quantize setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_auto_cue_level(&self) -> Result<AutoCueLevel>

Gets the value of the “AUTO CUE LEVEL” setting.

§Returns
  • Ok(AutoCueLevel) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the AutoCueLevel setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_language(&self) -> Result<Language>

Gets the value of the “LANGUAGE” setting.

§Returns
  • Ok(Language) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn set_language(&mut self, language: Language) -> Result<()>

Sets the value of the “LANGUAGE” setting.

§Parameters
  • language: The new value of the Language setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_jog_ring_brightness(&self) -> Result<JogRingBrightness>

Gets the value of the “JOG RING BRIGHTNESS” setting.

§Returns
  • Ok(JogRingBrightness) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the JogRingBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_jog_ring_indicator(&self) -> Result<JogRingIndicator>

Gets the value of the “JOG RING INDICATOR” setting.

§Returns
  • Ok(JogRingIndicator) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the JogRingIndicator setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_slip_flashing(&self) -> Result<SlipFlashing>

Gets the value of the “SLIP FLASHING” setting.

§Returns
  • Ok(SlipFlashing) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the SlipFlashing setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_disc_slot_illumination(&self) -> Result<DiscSlotIllumination>

Gets the value of the “DISC SLOT ILLUMINATION” setting.

§Returns
  • Ok(DiscSlotIllumination) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the DiscSlotIllumination setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_eject_lock(&self) -> Result<EjectLock>

Gets the value of the “EJECT/LOAD LOCK” setting.

§Returns
  • Ok(EjectLock) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the EjectLock setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_sync(&self) -> Result<Sync>

Gets the value of the “SYNC” setting.

§Returns
  • Ok(Sync) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn set_sync(&mut self, sync: Sync) -> Result<()>

Sets the value of the “SYNC” setting.

§Parameters
  • sync: The new value of the Sync setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_play_mode(&self) -> Result<PlayMode>

Gets the value of the “PLAY MODE” setting.

§Returns
  • Ok(PlayMode) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the PlayMode setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_quantize_beat_value(&self) -> Result<QuantizeBeatValue>

Gets the value of the “QUANTIZE BEAT VALUE” setting.

§Returns
  • Ok(QuantizeBeatValue) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the QuantizeBeatValue setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_hotcue_autoload(&self) -> Result<HotCueAutoLoad>

Gets the value of the “HOT CUE AUTO LOAD” setting.

§Returns
  • Ok(HotCueAutoLoad) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the HotCueAutoLoad setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_hotcue_color(&self) -> Result<HotCueColor>

Gets the value of the “HOT CUE COLOR” setting.

§Returns
  • Ok(HotCueColor) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the HotCueColor setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_needle_lock(&self) -> Result<NeedleLock>

Gets the value of the “NEEDLE LOCK” setting.

§Returns
  • Ok(NeedleLock) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the NeedleLock setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_time_mode(&self) -> Result<TimeMode>

Gets the value of the “TIME MODE” setting.

§Returns
  • Ok(TimeMode) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the TimeMode setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_jog_mode(&self) -> Result<JogMode>

Gets the value of the “JOG MODE” setting.

§Returns
  • Ok(JogMode) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the JogMode setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_auto_cue(&self) -> Result<AutoCue>

Gets the value of the “AUTO CUE” setting.

§Returns
  • Ok(AutoCue) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the AutoCue setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_master_tempo(&self) -> Result<MasterTempo>

Gets the value of the “MASTER TEMPO” setting.

§Returns
  • Ok(MasterTempo) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the MasterTempo setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_tempo_range(&self) -> Result<TempoRange>

Gets the value of the “TEMPO RANGE” setting.

§Returns
  • Ok(TempoRange) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the TempoRange setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_phase_meter(&self) -> Result<PhaseMeter>

Gets the value of the “PHASE METER” setting.

§Returns
  • Ok(PhaseMeter) if the SettingContent is of type MySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

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 the PhaseMeter setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting.
§Errors

Returns an error if the SettingContent is not a MySetting file.

Source

pub fn get_vinyl_speed_adjust(&self) -> Result<VinylSpeedAdjust>

Gets the value of the “VINYL SPEED ADJUST” setting.

§Returns
  • Ok(VinylSpeedAdjust) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

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 the VinylSpeedAdjust setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_jog_display_mode(&self) -> Result<JogDisplayMode>

Gets the value of the “JOG DISPLAY MODE” setting.

§Returns
  • Ok(JogDisplayMode) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

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 the JogDisplayMode setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_pad_button_brightness(&self) -> Result<PadButtonBrightness>

Gets the value of the “PAD/BUTTON BRIGHTNESS” setting.

§Returns
  • Ok(PadButtonBrightness) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn set_pad_button_brightness( &mut self, pad_button_brightness: PadButtonBrightness, ) -> Result<()>

Sets the value of the “PAD/BUTTON BRIGHTNESS” setting.

§Parameters
  • pad_button_brightness: The new value of the PadButtonBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_jog_lcd_brightness(&self) -> Result<JogLCDBrightness>

Gets the value of the “JOG LCD BRIGHTNESS” setting.

§Returns
  • Ok(JogLCDBrightness) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

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 the JogLCDBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_waveform_divisions(&self) -> Result<WaveformDivisions>

Gets the value of the “WAVEFORM DIVISIONS” setting.

§Returns
  • Ok(WaveformDivisions) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

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 the WaveformDivisions setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_waveform(&self) -> Result<Waveform>

Gets the value of the “WAVEFORM / PHASE METER” setting.

§Returns
  • Ok(Waveform) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn set_waveform(&mut self, waveform: Waveform) -> Result<()>

Sets the value of the “WAVEFORM / PHASE METER” setting.

§Parameters
  • waveform: The new value of the Waveform setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_beat_jump_beat_value(&self) -> Result<BeatJumpBeatValue>

Gets the value of the “BEAT JUMP BEAT VALUE” setting.

§Returns
  • Ok(BeatJumpBeatValue) if the SettingContent is of type MySetting2.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

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 the BeatJumpBeatValue setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type MySetting2.
§Errors

Returns an error if the SettingContent is not a MySetting2 file.

Source

pub fn get_channel_fader_curve(&self) -> Result<ChannelFaderCurve>

Gets the value of the “CH FADER CURVE” setting.

§Returns
  • Ok(ChannelFaderCurve) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the ChannelFaderCurve setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_crossfader_curve(&self) -> Result<CrossfaderCurve>

Gets the value of the “CROSSFADER CURVE” setting.

§Returns
  • Ok(CrossfaderCurve) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the CrossfaderCurve setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_headphones_pre_eq(&self) -> Result<HeadphonesPreEQ>

Gets the value of the “HEADPHONES PRE EQ” setting.

§Returns
  • Ok(HeadphonesPreEQ) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the HeadphonesPreEQ setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_headphones_mono_split(&self) -> Result<HeadphonesMonoSplit>

Gets the value of the “HEADPHONES MONO SPLIT” setting.

§Returns
  • Ok(HeadphonesMonoSplit) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the HeadphonesMonoSplit setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_beat_fx_quantize(&self) -> Result<BeatFXQuantize>

Gets the value of the “BEAT FX QUANTIZE” setting.

§Returns
  • Ok(BeatFXQuantize) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the BeatFXQuantize setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_mic_low_cut(&self) -> Result<MicLowCut>

Gets the value of the “MIC LOW CUT” setting.

§Returns
  • Ok(MicLowCut) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the MicLowCut setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_talk_over_mode(&self) -> Result<TalkOverMode>

Gets the value of the “TALK OVER MODE” setting.

§Returns
  • Ok(TalkOverMode) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the TalkOverMode setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_talk_over_level(&self) -> Result<TalkOverLevel>

Gets the value of the “TALK OVER LEVEL” setting.

§Returns
  • Ok(TalkOverLevel) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the TalkOverLevel setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_midi_channel(&self) -> Result<MidiChannel>

Gets the value of the “MIDI CH” setting.

§Returns
  • Ok(MidiChannel) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the MidiChannel setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_midi_button_type(&self) -> Result<MidiButtonType>

Gets the value of the “MIDI BUTTON TYPE” setting.

§Returns
  • Ok(MidiButtonType) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn set_midi_button_type( &mut self, midi_button_type: MidiButtonType, ) -> Result<()>

Sets the value of the “MIDI BUTTON TYPE” setting.

§Parameters
  • midi_button_type: The new value of the MidiButtonType setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_mixer_display_brightness(&self) -> Result<MixerDisplayBrightness>

Gets the value of the “MIXER DISPLAY BRIGHTNESS” setting.

§Returns
  • Ok(MixerDisplayBrightness) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the MixerDisplayBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_mixer_indicator_brightness(&self) -> Result<MixerIndicatorBrightness>

Gets the value of the “MIXER INDICATOR BRIGHTNESS” setting.

§Returns
  • Ok(MixerIndicatorBrightness) if the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the MixerIndicatorBrightness setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the SettingContent is of type DJMMySetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

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 the ChannelFaderCurveLongFader setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DJMMySetting.
§Errors

Returns an error if the SettingContent is not a DJMMySetting file.

Source

pub fn get_overview_waveform_type(&self) -> Result<OverviewWaveformType>

Gets the value of the “Type of the overview Waveform” setting.

§Returns
  • Ok(OverviewWaveformType) if the SettingContent is of type DevSetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

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 the OverviewWaveformType setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

pub fn get_waveform_color(&self) -> Result<WaveformColor>

Gets the value of the “Waveform color” setting.

§Returns
  • Ok(WaveformColor) if the SettingContent is of type DevSetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

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 the WaveformColor setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

pub fn get_key_display_format(&self) -> Result<KeyDisplayFormat>

Gets the value of the “Key display format” setting.

§Returns
  • Ok(KeyDisplayFormat) if the SettingContent is of type DevSetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

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 the KeyDisplayFormat setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

pub fn get_waveform_current_position(&self) -> Result<WaveformCurrentPosition>

Gets the value of the “Waveform Current Position” setting.

§Returns
  • Ok(WaveformCurrentPosition) if the SettingContent is of type DevSetting.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Source

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 the WaveformCurrentPosition setting to be set.
§Returns
  • Ok(()) if the value is successfully set.
  • Err(SettingError::InvalidFile) if the SettingContent is not of type DevSetting.
§Errors

Returns an error if the SettingContent is not a DevSetting file.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoResult<T> for T

Source§

type Err = !

Source§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.