pub enum PlacementMsg {
Pick {
hints: PlacementHints,
reply: Sender<Result<DeviceChoice, GpuError>>,
},
PollStats,
StatsUpdate {
slot: usize,
load: DeviceLoad,
},
}Variants§
Pick
PollStats
Internal: timer fires the per-device stats poll.
StatsUpdate
Internal: a single device’s stats reply arrived, update the cached load snapshot.
Auto Trait Implementations§
impl Freeze for PlacementMsg
impl !RefUnwindSafe for PlacementMsg
impl Send for PlacementMsg
impl Sync for PlacementMsg
impl Unpin for PlacementMsg
impl UnsafeUnpin for PlacementMsg
impl !UnwindSafe for PlacementMsg
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