pub struct GclkToken<G: GclkId> { /* private fields */ }
Expand description
Singleton token that can be exchanged for a Gclk
As explained in the clock
module documentation, instances of
various Token
types can be exchanged for actual clock types. They
typically represent clocks that are disabled at power-on reset.
GclkToken
s are no different. All Gclk
s other than Gclk0
are
disabled at power-on reset. To use a Gclk
, you must first exchange the
token for an actual clock with Gclk::from_source
or Gclk::from_pin
.
GclkToken
is generic over the GclkId
, where each corresponding token
represents one of the 12 respective Gclk
s.
Auto Trait Implementations
impl<G> RefUnwindSafe for GclkToken<G>where
G: RefUnwindSafe,
impl<G> Send for GclkToken<G>where
G: Send,
impl<G> Sync for GclkToken<G>where
G: Sync,
impl<G> Unpin for GclkToken<G>where
G: Unpin,
impl<G> UnwindSafe for GclkToken<G>where
G: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more