pub enum ExternalMemorySource {
Fd(Option<i32>),
Dma(Option<i32>),
HostAllocation(usize),
}Expand description
If the source contains None it will export it otherwise it will import the value in Some
Variants§
Fd(Option<i32>)
Dma(Option<i32>)
HostAllocation(usize)
Is a pointer cast to usize, reason being it otherwise can’t be used as sync and send, you should manage memory access to this yourself
Trait Implementations§
Source§impl Clone for ExternalMemorySource
impl Clone for ExternalMemorySource
Source§fn clone(&self) -> ExternalMemorySource
fn clone(&self) -> ExternalMemorySource
Returns a duplicate 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 moreSource§impl Debug for ExternalMemorySource
impl Debug for ExternalMemorySource
Source§impl Hash for ExternalMemorySource
impl Hash for ExternalMemorySource
Source§impl PartialEq for ExternalMemorySource
impl PartialEq for ExternalMemorySource
impl Copy for ExternalMemorySource
impl StructuralPartialEq for ExternalMemorySource
Auto Trait Implementations§
impl Freeze for ExternalMemorySource
impl RefUnwindSafe for ExternalMemorySource
impl Send for ExternalMemorySource
impl Sync for ExternalMemorySource
impl Unpin for ExternalMemorySource
impl UnwindSafe for ExternalMemorySource
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