pub struct Handle {
    pub memory: SliceHandle,
    pub offset_start: Option<u64>,
    pub offset_end: Option<u64>,
    pub stream: StreamId,
    pub cursor: u64,
    /* private fields */
}Expand description
Server handle containing the memory handle.
Fields§
§memory: SliceHandleMemory handle.
offset_start: Option<u64>Memory offset in bytes.
offset_end: Option<u64>Memory offset in bytes.
stream: StreamIdThe stream where the data was created.
cursor: u64The stream position when the tensor became available.
Implementations§
Source§impl Handle
 
impl Handle
Sourcepub fn offset_start(self, offset: u64) -> Self
 
pub fn offset_start(self, offset: u64) -> Self
Add to the current offset in bytes.
Sourcepub fn offset_end(self, offset: u64) -> Self
 
pub fn offset_end(self, offset: u64) -> Self
Add to the current offset in bytes.
Trait Implementations§
impl Eq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.