Struct furiosa_device::DeviceConfigBuilder
source · pub struct DeviceConfigBuilder<A, M, C> { /* private fields */ }
Expand description
A builder struct for DeviceConfig
.
Implementations§
source§impl<A, C> DeviceConfigBuilder<A, NotDetermined, C>
impl<A, C> DeviceConfigBuilder<A, NotDetermined, C>
pub fn multicore(self) -> DeviceConfigBuilder<A, DeviceMode, C>
pub fn single(self) -> DeviceConfigBuilder<A, DeviceMode, C>
pub fn fused(self) -> DeviceConfigBuilder<A, DeviceMode, C>
source§impl<A, M, C> DeviceConfigBuilder<A, M, C>where
Arch: From<A>,
DeviceMode: From<M>,
Count: From<C>,
impl<A, M, C> DeviceConfigBuilder<A, M, C>where Arch: From<A>, DeviceMode: From<M>, Count: From<C>,
pub fn count(self, count: u8) -> DeviceConfig
pub fn all(self) -> DeviceConfig
pub fn build(self) -> DeviceConfig
Trait Implementations§
Auto Trait Implementations§
impl<A, M, C> RefUnwindSafe for DeviceConfigBuilder<A, M, C>where A: RefUnwindSafe, C: RefUnwindSafe, M: RefUnwindSafe,
impl<A, M, C> Send for DeviceConfigBuilder<A, M, C>where A: Send, C: Send, M: Send,
impl<A, M, C> Sync for DeviceConfigBuilder<A, M, C>where A: Sync, C: Sync, M: Sync,
impl<A, M, C> Unpin for DeviceConfigBuilder<A, M, C>where A: Unpin, C: Unpin, M: Unpin,
impl<A, M, C> UnwindSafe for DeviceConfigBuilder<A, M, C>where A: UnwindSafe, C: UnwindSafe, M: UnwindSafe,
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