pub struct GpuManager { /* private fields */ }Implementations§
Source§impl GpuManager
impl GpuManager
pub fn new() -> Self
pub async fn register(&self, info: SessionInfo)
pub async fn unregister(&self, pid: u32) -> bool
pub async fn list(&self) -> Vec<SessionInfo>
pub async fn total_estimated_vram_mb(&self) -> u64
Trait Implementations§
Source§impl Clone for GpuManager
impl Clone for GpuManager
Source§fn clone(&self) -> GpuManager
fn clone(&self) -> GpuManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GpuManager
impl !RefUnwindSafe for GpuManager
impl Send for GpuManager
impl Sync for GpuManager
impl Unpin for GpuManager
impl UnsafeUnpin for GpuManager
impl !UnwindSafe for GpuManager
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