pub enum Operation<'a, W: 'static> {
Write(&'a [W]),
Transfer(&'a mut [W]),
}
Expand description
Operation for transactional SPI trait
This allows composition of SPI operations into a single bus transaction
Variants
Write(&'a [W])
Write data from the provided buffer, discarding read data
Transfer(&'a mut [W])
Write data out while reading data into the provided buffer
Trait Implementations
impl<'a, W: 'static> StructuralPartialEq for Operation<'a, W>
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for Operation<'a, W> where
W: RefUnwindSafe,
impl<'a, W> Send for Operation<'a, W> where
W: Send + Sync,
impl<'a, W> Sync for Operation<'a, W> where
W: Sync,
impl<'a, W> Unpin for Operation<'a, W>
impl<'a, W> !UnwindSafe for Operation<'a, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more