pub struct TeamLease<'a> { /* private fields */ }Expand description
An exclusive loan of a team set, returned to its owner on drop.
The set is deliberately opaque: the panel grows only through
TeamLease::panel, so every byte the owner hands out is accounted.
Implementations§
Source§impl<'a> TeamLease<'a>
impl<'a> TeamLease<'a>
Sourcepub fn panel(&mut self, bytes: usize) -> *mut u8
pub fn panel(&mut self, bytes: usize) -> *mut u8
Size the shared panel and return its pointer, accounting the growth to the owner. The driver sizes it because only the driver knows the element type; the provider keeps the storage.
Sourcepub fn scatter_mut(&mut self) -> &mut Vec<i64>
pub fn scatter_mut(&mut self) -> &mut Vec<i64>
The team’s block-scatter buffer, sized by the driver each call.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Sync for TeamLease<'a>
impl<'a> Freeze for TeamLease<'a>
impl<'a> RefUnwindSafe for TeamLease<'a>
impl<'a> Send for TeamLease<'a>
impl<'a> Unpin for TeamLease<'a>
impl<'a> UnsafeUnpin for TeamLease<'a>
impl<'a> UnwindSafe for TeamLease<'a>
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> 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