embassy-stm32

Crates

git

Versions

stm32h743bi

Flavors

Skip to main content

VbusDetect

Trait VbusDetect 

Source
pub trait VbusDetect: Sized { }
Expand description

VBUS detection strategy for Driver.

Defaults to (), which assumes VBUS is always present with zero runtime or code-size overhead. Calling Driver::with_vbus switches the driver to ExtiInput<'d, Async>.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VbusDetect for ()

Implementors§