pub struct Config {
pub timeout_vblanks: u32,
pub irq_mask_policy: IrqMaskPolicy,
pub pause_after_audio: bool,
pub time_handler: bool,
pub double_speed: bool,
}Expand description
How the engine behaves.
Fields§
§timeout_vblanks: u32A transfer with no sector, response or phase change for this many
VBlanks fails with FailureKind::Watchdog.
irq_mask_policy: IrqMaskPolicySee IrqMaskPolicy.
pause_after_audio: boolStart the first transfer after an audio lease with a recovery Pause, so a drive that was playing or parked at an audio position is stopped before the seek. Costs one command; skip it only if the audio code always ends with its own Pause.
time_handler: boolMeasure how long each handler call takes, with Timer 2, which the
transport then owns. The longest call is max_irq_ticks, in
system-clock / 8 ticks that wrap after about 15.5 ms.
double_speed: boolRead at double speed (150 sectors per second, the default and the only rate a streamer wants). Clear it for single speed (75 sectors per second), which halves the CPU the sector pops cost per second of reading; it applies from the next transfer.
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)