pub trait ChipSelectGuarded: ChipSelect {
type Guard<'a>
where Self: 'a;
// Required method
fn select_guard(&mut self) -> Self::Guard<'_>;
}
Expand description
A chip-select trait.
Required Associated Types§
Required Methods§
Sourcefn select_guard(&mut self) -> Self::Guard<'_>
fn select_guard(&mut self) -> Self::Guard<'_>
Selects the device and returns a guard that, when dropped, deselects the chip.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.