pub struct SlotGuard {
pub pipe: OwnedMutexGuard<Pipeline>,
pub device: usize,
/* private fields */
}Expand description
A checked-out slot: holds both the concurrency permit and the pipeline lock until dropped.
Fields§
§pipe: OwnedMutexGuard<Pipeline>§device: usizeThe card this slot’s weights are on. The handler thread is pinned to it for the whole request — the engine resolves its device context (and therefore its weight cache) through that pin.
Auto Trait Implementations§
impl !RefUnwindSafe for SlotGuard
impl !Sync for SlotGuard
impl !UnwindSafe for SlotGuard
impl Freeze for SlotGuard
impl Send for SlotGuard
impl Unpin for SlotGuard
impl UnsafeUnpin for SlotGuard
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