pub struct Binding {
pub memory: ManagedMemoryBinding,
pub offset_start: Option<u64>,
pub offset_end: Option<u64>,
pub stream: StreamId,
pub size: u64,
}Expand description
A binding represents a Handle that is bound to managed memory.
The memory used is known by the compute server.
A binding is only valid after being initlized with [super::ComputeServer::initialize_bindings]
§Notes
A binding is detached from a Handle, meaning that is won’t affect Handle::can_mut.
Fields§
§memory: ManagedMemoryBindingThe id of the handle the binding is bound to.
offset_start: Option<u64>Memory offset in bytes.
offset_end: Option<u64>Memory offset in bytes.
stream: StreamIdThe stream where the data was created.
size: u64Length of the underlying buffer ignoring offsets
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binding
impl !RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl !UnwindSafe for Binding
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