pub struct XoscToken<X: XoscId> { /* private fields */ }Expand description
Singleton token that can be exchanged for an Xosc
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.
XoscTokens are no different. Both Xoscs are disabled at power-on
reset. To use an Xosc, you must first exchange the token for an actual
clock with Xosc::from_clock or Xosc::from_crystal.
XoscToken is generic over the XoscId, where each corresponding token
represents one of the two respective Xoscs.
Auto Trait Implementations
impl<X> RefUnwindSafe for XoscToken<X>where
    X: RefUnwindSafe,
impl<X> Send for XoscToken<X>where
    X: Send,
impl<X> Sync for XoscToken<X>where
    X: Sync,
impl<X> Unpin for XoscToken<X>where
    X: Unpin,
impl<X> UnwindSafe for XoscToken<X>where
    X: 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