pub struct ClockCtrl<K>{ /* private fields */ }Expand description
A control object for different clocking scopes
Each clock target can be configured individually via the Target
type, returned by setup(). Additionally you need to provide
some type that implements Hash. It’s recomended to just use an
enum that can be mapped onto each of your reactors internal tasks.
Implementations§
Source§impl<K> ClockCtrl<K>
impl<K> ClockCtrl<K>
Sourcepub fn setup(&mut self, trgt: K) -> &mut Target
pub fn setup(&mut self, trgt: K) -> &mut Target
Override the default clocking scheme for a particular target
It’s already possible to constrain clock settings witout
setting custom bounds, just because the consumer of the
ClockCtl type can fall back to some defaults when this
builder returns an object filled with None.
Canonically, the default constraints could be used to enable a low battery mode, whereas more low power embedded platforms can be further optimised.
Auto Trait Implementations§
impl<K> Freeze for ClockCtrl<K>
impl<K> !RefUnwindSafe for ClockCtrl<K>
impl<K> Send for ClockCtrl<K>where
K: Send,
impl<K> !Sync for ClockCtrl<K>
impl<K> Unpin for ClockCtrl<K>
impl<K> !UnwindSafe for ClockCtrl<K>
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