pub struct SetDefaultDeviceOperation<'c> { /* private fields */ }
Expand description
A set_default_device
operation. Set default GPU for operations after this by index.
Operation that sets the current default GPU, using a zero-based index into the set of GPUs on the system. The default GPU setting may be thread-local.
Implementations§
source§impl<'c> SetDefaultDeviceOperation<'c>
impl<'c> SetDefaultDeviceOperation<'c>
Trait Implementations§
source§impl<'c> From<SetDefaultDeviceOperation<'c>> for Operation<'c>
impl<'c> From<SetDefaultDeviceOperation<'c>> for Operation<'c>
source§fn from(operation: SetDefaultDeviceOperation<'c>) -> Self
fn from(operation: SetDefaultDeviceOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for SetDefaultDeviceOperation<'c>
impl<'c> !Send for SetDefaultDeviceOperation<'c>
impl<'c> !Sync for SetDefaultDeviceOperation<'c>
impl<'c> Unpin for SetDefaultDeviceOperation<'c>
impl<'c> UnwindSafe for SetDefaultDeviceOperation<'c>
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