pub struct SoftwareVbusDetect { /* private fields */ }Expand description
Software-backed VbusDetect implementation.
This implementation does not interact with the hardware, it allows user code to notify the power events by calling functions instead.
This is suitable for use with the nRF softdevice, by calling the functions when the softdevice reports power-related events.
Implementations§
Trait Implementations§
Source§impl VbusDetect for &SoftwareVbusDetect
impl VbusDetect for &SoftwareVbusDetect
Auto Trait Implementations§
impl !Freeze for SoftwareVbusDetect
impl RefUnwindSafe for SoftwareVbusDetect
impl Send for SoftwareVbusDetect
impl Sync for SoftwareVbusDetect
impl Unpin for SoftwareVbusDetect
impl UnsafeUnpin for SoftwareVbusDetect
impl UnwindSafe for SoftwareVbusDetect
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