Enum driver_virtio::BufferDirection
pub enum BufferDirection {
DriverToDevice,
DeviceToDriver,
Both,
}
Expand description
The direction in which a buffer is passed.
Variants§
DriverToDevice
The buffer may be read or written by the driver, but only read by the device.
DeviceToDriver
The buffer may be read or written by the device, but only read by the driver.
Both
The buffer may be read or written by both the device and the driver.
Trait Implementations§
§impl Clone for BufferDirection
impl Clone for BufferDirection
§fn clone(&self) -> BufferDirection
fn clone(&self) -> BufferDirection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for BufferDirection
impl Debug for BufferDirection
§impl PartialEq for BufferDirection
impl PartialEq for BufferDirection
§fn eq(&self, other: &BufferDirection) -> bool
fn eq(&self, other: &BufferDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BufferDirection
impl Eq for BufferDirection
impl StructuralEq for BufferDirection
impl StructuralPartialEq for BufferDirection
Auto Trait Implementations§
impl RefUnwindSafe for BufferDirection
impl Send for BufferDirection
impl Sync for BufferDirection
impl Unpin for BufferDirection
impl UnwindSafe for BufferDirection
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