pub struct ResumablePeripheralGuard<'a, T: SuspendablePeripheral> { /* private fields */ }Expand description
A mutex-like object guard, that when held, activates the peripheral
Trait Implementations§
Source§impl<'a, T: SuspendablePeripheral> Deref for ResumablePeripheralGuard<'a, T>
impl<'a, T: SuspendablePeripheral> Deref for ResumablePeripheralGuard<'a, T>
Source§impl<'a, T: SuspendablePeripheral> DerefMut for ResumablePeripheralGuard<'a, T>
impl<'a, T: SuspendablePeripheral> DerefMut for ResumablePeripheralGuard<'a, T>
Source§impl<'a, T: SuspendablePeripheral> Drop for ResumablePeripheralGuard<'a, T>
impl<'a, T: SuspendablePeripheral> Drop for ResumablePeripheralGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ResumablePeripheralGuard<'a, T>
impl<'a, T> RefUnwindSafe for ResumablePeripheralGuard<'a, T>where
T: RefUnwindSafe,
<T as SealedSuspendablePeripheral>::InternalState: RefUnwindSafe,
impl<'a, T> Send for ResumablePeripheralGuard<'a, T>
impl<'a, T> Sync for ResumablePeripheralGuard<'a, T>
impl<'a, T> Unpin for ResumablePeripheralGuard<'a, T>
impl<'a, T> !UnwindSafe for ResumablePeripheralGuard<'a, T>
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
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.
Source§impl<R> TryRng for R
impl<R> TryRng for R
Source§impl<R> TryRngCore for R
impl<R> TryRngCore for R
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of a RNG error.
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
Return the next random
u64.Source§fn try_fill_bytes(
&mut self,
dst: &mut [u8],
) -> Result<(), <R as TryRngCore>::Error>
fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>
Fill
dest entirely with random data.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.