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 !RefUnwindSafe for Binding
impl !UnwindSafe for Binding
impl Freeze for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more