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§
Source§impl Clone for BufferDirection
impl Clone for BufferDirection
Source§fn clone(&self) -> BufferDirection
fn clone(&self) -> BufferDirection
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BufferDirection
impl Debug for BufferDirection
Source§impl PartialEq for BufferDirection
impl PartialEq for BufferDirection
impl Copy for BufferDirection
impl Eq for BufferDirection
impl StructuralPartialEq for BufferDirection
Auto Trait Implementations§
impl Freeze for BufferDirection
impl RefUnwindSafe for BufferDirection
impl Send for BufferDirection
impl Sync for BufferDirection
impl Unpin for BufferDirection
impl UnwindSafe for BufferDirection
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)