Struct omnisensor::gpio::BridgeGPIOActivation
source · [−]pub struct BridgeGPIOActivation<'a> {
gpio: &'a mut BridgeGPIO,
}
Expand description
A guard object representing a BridgeGPIO
held in its active state.
Fields
gpio: &'a mut BridgeGPIO
The associated BridgeGPIO
Trait Implementations
sourceimpl Drop for BridgeGPIOActivation<'_>
impl Drop for BridgeGPIOActivation<'_>
sourcefn drop(&mut self)
fn drop(&mut self)
Resets the associated BridgeGPIO
back to its inactive state.
Auto Trait Implementations
impl<'a> RefUnwindSafe for BridgeGPIOActivation<'a>
impl<'a> Send for BridgeGPIOActivation<'a>
impl<'a> Sync for BridgeGPIOActivation<'a>
impl<'a> Unpin for BridgeGPIOActivation<'a>
impl<'a> !UnwindSafe for BridgeGPIOActivation<'a>
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