Enum usb_util::device::TransferBuffer
source · pub enum TransferBuffer {
Vector(Vec<u8>),
Dma(Weak<Mutex<DmaBuffer>>),
}
Expand description
TransferBuffer is used for data transfer between crosvm and the host kernel
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TransferBuffer
impl Clone for TransferBuffer
source§fn clone(&self) -> TransferBuffer
fn clone(&self) -> TransferBuffer
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TransferBuffer
impl Send for TransferBuffer
impl Sync for TransferBuffer
impl Unpin for TransferBuffer
impl UnwindSafe for TransferBuffer
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