#[non_exhaustive]pub struct Config { /* private fields */ }Expand description
Controller-wide (engine) configuration.
These settings drive the shared module clock and therefore apply to the whole controller, not an individual slot.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_clock_source(self, clock_source: ClockSource) -> Self
pub fn with_clock_source(self, clock_source: ClockSource) -> Self
Assign the given value to the clock_source field.
Sourcepub fn clock_source(&self) -> ClockSource
pub fn clock_source(&self) -> ClockSource
The clock source for the module clock.
Sourcepub fn with_module_div(self, module_div: u8) -> Self
pub fn with_module_div(self, module_div: u8) -> Self
Assign the given value to the module_div field.
Sourcepub fn module_div(&self) -> u8
pub fn module_div(&self) -> u8
The module-clock divider (valid range 2..=16).
Trait Implementations§
impl Copy for Config
Available on crate feature
unstable only.impl Eq for Config
Available on crate feature
unstable only.impl StructuralPartialEq for Config
Available on crate feature
unstable only.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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)