pub struct MemoryTransfer {
pub src: MemoryHandle,
pub dst: MemoryHandle,
pub size: usize,
pub src_offset: usize,
pub dst_offset: usize,
}Expand description
Memory transfer specification
Fields§
§src: MemoryHandleSource memory handle
dst: MemoryHandleDestination memory handle
size: usizeNumber of bytes to transfer
src_offset: usizeOffset in source memory
dst_offset: usizeOffset in destination memory
Implementations§
Source§impl MemoryTransfer
impl MemoryTransfer
Sourcepub fn new(src: MemoryHandle, dst: MemoryHandle, size: usize) -> Self
pub fn new(src: MemoryHandle, dst: MemoryHandle, size: usize) -> Self
Create new memory transfer
Sourcepub fn with_src_offset(self, offset: usize) -> Self
pub fn with_src_offset(self, offset: usize) -> Self
Set source offset
Sourcepub fn with_dst_offset(self, offset: usize) -> Self
pub fn with_dst_offset(self, offset: usize) -> Self
Set destination offset
Trait Implementations§
Source§impl Clone for MemoryTransfer
impl Clone for MemoryTransfer
Source§fn clone(&self) -> MemoryTransfer
fn clone(&self) -> MemoryTransfer
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 moreAuto Trait Implementations§
impl Freeze for MemoryTransfer
impl RefUnwindSafe for MemoryTransfer
impl Send for MemoryTransfer
impl Sync for MemoryTransfer
impl Unpin for MemoryTransfer
impl UnsafeUnpin for MemoryTransfer
impl UnwindSafe for MemoryTransfer
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