pub enum IoOperation<'a> {
Read(&'a mut [u8]),
Write(&'a [u8]),
}Expand description
Operation for Io and Mmio
Variants§
Read(&'a mut [u8])
Data to be read from a device on the bus.
The handle_fn should fill the entire slice with the read data.
Write(&'a [u8])
Data to be written to a device on the bus.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IoOperation<'a>
impl<'a> RefUnwindSafe for IoOperation<'a>
impl<'a> Send for IoOperation<'a>
impl<'a> Sync for IoOperation<'a>
impl<'a> Unpin for IoOperation<'a>
impl<'a> !UnwindSafe for IoOperation<'a>
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